/** * Handles the service provider of the capabilities document. * * @param config * The OGC service to transform. * * @throws SAXException * For any errors. */ private void handleServiceProvider() { start("ows:ServiceProvider"); element("ows:ProviderName", wcs.getGeoServer().getContactOrganization()); AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute("", "xlink:href", "xlink:href", "", wcs.getGeoServer() .getOnlineResource()); element("ows:ProviderSite", null, attributes); handleContact(); end("ows:ServiceProvider"); }
|| ((config.getGeoServer().getContactOrganization() != null) && (config.getGeoServer().getContactOrganization() != ""))) { start("responsibleParty"); element("individualName", tmp); tmp = config.getGeoServer().getContactOrganization(); tmp = config.getGeoServer().getContactOrganization();
/** * Encodes contact information in the WMS capabilities document * @param geoServer */ public void handleContactInfo(GeoServer geoServer) { start("ContactInformation"); start("ContactPersonPrimary"); element("ContactPerson", geoServer.getContactPerson()); element("ContactOrganization", geoServer.getContactOrganization()); end("ContactPersonPrimary"); element("ContactPosition", geoServer.getContactPosition()); start("ContactAddress"); element("AddressType", geoServer.getAddressType()); element("Address", geoServer.getAddress()); element("City", geoServer.getAddressCity()); element("StateOrProvince", geoServer.getAddressState()); element("PostCode", geoServer.getAddressPostalCode()); element("Country", geoServer.getAddressCountry()); end("ContactAddress"); element("ContactVoiceTelephone", geoServer.getContactVoice()); element("ContactFacsimileTelephone", geoServer.getContactFacsimile()); element("ContactElectronicMailAddress", geoServer.getContactEmail()); end("ContactInformation"); }