/** * DOCUMENT ME! * * @param kwords DOCUMENT ME! * @throws SAXException DOCUMENT ME! */ private void handleKeywords(List kwords) { if (kwords == null || kwords.isEmpty()) { return; } start("wcs:keywords"); if (kwords != null) { for (Iterator it = kwords.iterator(); it.hasNext(); ) { element("wcs:keyword", it.next().toString()); } } end("wcs:keywords"); }
"", /* "WGS84(DD)" */ "urn:ogc:def:crs:OGC:1.3:CRS84"); start("wcs:lonLatEnvelope", attributes); final StringBuffer minCP = new StringBuffer(Double.toString(referencedEnvelope.getMinX()))
attributes.addAttribute( "", "updateSequence", "updateSequence", "", String.valueOf(updateSequence)); start("wcs:WCS_Capabilities", attributes);
|| ((contact.getContactOrganization() != null) && (contact.getContactOrganization() != ""))) { start("wcs:responsibleParty"); start("wcs:contactInfo"); start("wcs:phone"); tmp = contact.getContactVoice(); start("wcs:address"); tmp = contact.getAddressType(); AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute("", "xlink:href", "xlink:href", "", tmp); start("wcs:onlineResource", attributes); end("wcs:onlineResource");
start("wcs:CoverageOfferingBrief");
start("wcs:ContentMetadata", attributes);
attributes.addAttribute("", "version", "version", "", CUR_VERSION); start("wcs:Service", attributes); if (wcs.getMetadataLink() != null) { handleMetadataLink(wcs.getMetadataLink(), "simple");
private void handleCapability(String capabilityName) { AttributesImpl attributes = new AttributesImpl(); start(capabilityName); start("wcs:DCPType"); start("wcs:HTTP"); // String baseURL = RequestUtils.proxifiedBaseURL(request.getBaseUrl(), // wcs.getGeoServer().getGlobal().getProxyBaseUrl()); String url = buildURL(request.getBaseUrl(), "wcs", null, URLType.SERVICE); url = makeURLAppendable(url); attributes.addAttribute("", "xlink:href", "xlink:href", "", url); start("wcs:Get"); start("wcs:OnlineResource", attributes); end("wcs:OnlineResource"); end("wcs:Get"); end("wcs:HTTP"); end("wcs:DCPType"); attributes = new AttributesImpl(); attributes.addAttribute("", "xlink:href", "xlink:href", "", url); start("wcs:DCPType"); start("wcs:HTTP"); start("wcs:Post"); start("wcs:OnlineResource", attributes); end("wcs:OnlineResource"); end("wcs:Post"); end("wcs:HTTP"); end("wcs:DCPType"); end(capabilityName); }
/** * Handles the printing of the exceptions information, prints the formats that GeoServer can * return exceptions in. * * @param config The wms service global config. * @throws SAXException For any problems. */ private void handleExceptions() { start("wcs:Exception"); final List<String> exceptionFormats = wcs.getExceptionFormats(); if (exceptionFormats == null || exceptionFormats.isEmpty()) { exceptionFormats.add("application/vnd.ogc.se_xml"); } for (String format : exceptionFormats) { element("wcs:Format", format); } end("wcs:Exception"); }
/** * Handles the request portion of the document, printing out the capabilities and where to * bind to them. * * @param config The global wms. * @throws SAXException For any problems. */ private void handleRequest() { start("wcs:Request"); handleCapability("wcs:GetCapabilities"); handleCapability("wcs:DescribeCoverage"); handleCapability("wcs:GetCoverage"); end("wcs:Request"); }
/** * DOCUMENT ME! * * @param serviceConfig DOCUMENT ME! * @throws SAXException DOCUMENT ME! */ private void handleCapabilities(boolean allSections) { start("wcs:Capability"); handleRequest(); handleExceptions(); handleVendorSpecifics(); end("wcs:Capability"); }