public DescribeCoverageTransformer describeCoverage(DescribeCoverageType request) { final String version = request.getVersion(); if ("1.1.0".equals(version) || "1.1.1".equals(version)) { WCSInfo wcs = getServiceInfo(); DescribeCoverageTransformer describeTransformer = new DescribeCoverageTransformer(wcs, catalog, responseFactory); describeTransformer.setEncoding( Charset.forName(wcs.getGeoServer().getSettings().getCharset())); return describeTransformer; } throw new WcsException("Could not understand version:" + version); }
|| WCS20Const.V111.equals(negotiatedVersion)) { LOGGER.warning("GetCapa2.0 Dispatching to 1.1"); // next code should be tested a bit WCSCapsTransformer capsTransformer = new WCSCapsTransformer(wcs.getGeoServer()); capsTransformer.setEncoding( Charset.forName((wcs.getGeoServer().getSettings().getCharset()))); return capsTransformer; } else if (WCS20Const.V20.equals(negotiatedVersion) || WCS20Const.V201.equals(negotiatedVersion)) { WCS20GetCapabilitiesTransformer capsTransformer = new WCS20GetCapabilitiesTransformer(wcs.getGeoServer(), responseFactory); capsTransformer.setEncoding( Charset.forName((wcs.getGeoServer().getSettings().getCharset()))); return capsTransformer; } else {
/** */ public Wcs10CapsTransformer getCapabilities(GetCapabilitiesType request) { // do the version negotiation dance List<String> provided = new ArrayList<String>(); provided.add("1.0.0"); List<String> accepted = null; if (request.getVersion() != null) { accepted = new ArrayList<String>(); accepted.add(request.getVersion()); } String version = RequestUtils.getVersionPreOws(provided, accepted); if ("1.0.0".equals(version)) { Wcs10CapsTransformer capsTransformer = new Wcs10CapsTransformer(geoServer); capsTransformer.setEncoding( Charset.forName((getServiceInfo().getGeoServer().getSettings().getCharset()))); return capsTransformer; } throw new WcsException("Could not understand version:" + version); }
/** Creates a new WFSCapsTransformer object. */ public Wcs10DescribeCoverageTransformer(WCSInfo wcs, Catalog catalog) { super(); this.wcs = wcs; this.catalog = catalog; this.skipMisconfigured = ResourceErrorHandling.SKIP_MISCONFIGURED_LAYERS.equals( wcs.getGeoServer().getGlobal().getResourceErrorHandling()); setNamespaceDeclarationEnabled(false); }
/** */ public Wcs10DescribeCoverageTransformer describeCoverage(DescribeCoverageType request) { final String version = request.getVersion(); if ("1.0.0".equals(version)) { WCSInfo wcs = getServiceInfo(); Wcs10DescribeCoverageTransformer describeTransformer = new Wcs10DescribeCoverageTransformer(wcs, catalog); describeTransformer.setEncoding( Charset.forName((wcs.getGeoServer().getSettings().getCharset()))); return describeTransformer; } throw new WcsException("Could not understand version:" + version); }
public WCSCapsTransformer getCapabilities(GetCapabilitiesType request) { // do the version negotiation dance List<String> provided = new ArrayList<String>(); // provided.add("1.0.0"); provided.add("1.1.0"); provided.add("1.1.1"); List<String> accepted = null; if (request.getAcceptVersions() != null) accepted = request.getAcceptVersions().getVersion(); String version = RequestUtils.getVersionOws11(provided, accepted); // TODO: add support for 1.0.0 in here if ("1.1.0".equals(version) || "1.1.1".equals(version)) { WCSCapsTransformer capsTransformer = new WCSCapsTransformer(geoServer); capsTransformer.setEncoding( Charset.forName((getServiceInfo().getGeoServer().getSettings().getCharset()))); return capsTransformer; } throw new WcsException("Could not understand version:" + version); }
final long updateSequence = wcs.getGeoServer().getGlobal().getUpdateSequence(); long requestedUpdateSequence = -1; if (request.getUpdateSequence() != null) {
new ArrayList<CoverageInfo>(wcs.getGeoServer().getCatalog().getCoverages());
final long updateSequence = wcs.getGeoServer().getGlobal().getUpdateSequence(); long requestedUpdateSequence = -1; if (request.getUpdateSequence() != null) {
final Set<CoverageInfo> coverages = new TreeSet<CoverageInfo>(new CoverageInfoLabelComparator()); coverages.addAll(wcs.getGeoServer().getCatalog().getCoverages());
/** * 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"); SettingsInfo settings = wcs.getGeoServer().getSettings(); element("ows:ProviderName", settings.getContact().getContactOrganization()); AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute( "", "xlink:href", "xlink:href", "", settings.getOnlineResource() != null ? settings.getOnlineResource() : ""); element("ows:ProviderSite", null, attributes); handleContact(); end("ows:ServiceProvider"); }
/** * Handles the service provider of the capabilities document. * * @param config The OGC service to transform. * @throws SAXException For any errors. */ protected void handleServiceProvider() { start("ows:ServiceProvider"); SettingsInfo settings = wcs.getGeoServer().getSettings(); element("ows:ProviderName", settings.getContact().getContactOrganization()); AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute( "", "xlink:href", "xlink:href", "", settings.getOnlineResource() != null ? settings.getOnlineResource() : ""); element("ows:ProviderSite", null, attributes); handleContact(); end("ows:ServiceProvider"); }
final long updateSequence = wcs.getGeoServer().getGlobal().getUpdateSequence(); long requestedUpdateSequence = -1; if (request.getUpdateSequence() != null) {
wcs, catalog, responseFactory, envelopeAxesMapper, mimeMapper); describeTransformer.setEncoding( Charset.forName(wcs.getGeoServer().getSettings().getCharset())); return describeTransformer;
final GeoServer gs = wcs.getGeoServer(); start("ows:ServiceContact");
final GeoServer gs = wcs.getGeoServer(); start("ows:ServiceContact");
final GeoServer gs = wcs.getGeoServer(); String tmp = "";