GfrWMSCapabilities cap = GfrWMSCapabilities.retrieve(uri);
cap.parse();
String strVersionService = cap.getVersion();
OGCServiceInformation sin = cap.getServiceInformation();
String strFeesService = sin.getFees();
String strAbstractService = sin.getServiceAbstract();
String strNameService = sin.getServiceName();
String strTitleService = sin.getServiceTitle();
// memo: strTitleService used to display node's userObject in JTree, allowed to be not unique
if (strTitleService == null)
{
String strError = "strTitleService == null";
GfrCapWms._LOGGER_.severe(strError);
throw new Exception(strError);
}
strTitleService = strTitleService.trim();
if (strTitleService.length() < 1)
{
String strError = "strTitleService.length() < 1";
GfrCapWms._LOGGER_.severe(strError);
throw new Exception(strError);
}
OGCContactInformation cin = sin.getContactInformation();
String strPrimaryPersonContact = cin.getPersonPrimary();
String strPositionContact = cin.getPosition();
String strOrganisationContact = cin.getOrganization();
String strTelephoneVoiceContact = cin.getVoiceTelephone();
String strTelephoneFacsimileContact = cin.getFacsimileTelephone();