void encodeEntry(SimpleFeature feature, WMSMapContext map) { start("entry"); //title element("title", feature.getID()); start("author"); element("name", map.getRequest().getGeoServer().getContactPerson()); end("author"); //id element("id", AtomUtils.getEntryURI(feature, map)); AttributesImpl atts = new AttributesImpl(); atts.addAttribute(null, "href", "href", null, AtomUtils.getEntryURL(feature, map) ); atts.addAttribute(null, "rel", "rel", null, "self"); element("link", null, atts); //updated element("updated", AtomUtils.dateToRFC3339(new Date())); //content atts = new AttributesImpl(); atts.addAttribute(null, "type", "type", null, "html"); element("content", AtomUtils.getFeatureDescription(feature), atts); //where start("georss:where"); encodeGeometry(feature); end("georss:where"); end("entry"); } }
start("ows:ServiceContact"); elementIfNotEmpty("ows:IndividualName", gs.getContactPerson()); elementIfNotEmpty("ows:PositionName", gs.getContactPosition());
String tmp = ""; if (((config.getGeoServer().getContactPerson() != null) && (config.getGeoServer().getContactPerson() != "")) || ((config.getGeoServer().getContactOrganization() != null) && (config.getGeoServer().getContactOrganization() != ""))) { start("responsibleParty"); tmp = config.getGeoServer().getContactPerson();
/** * 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"); }