protected String wfsSchemaLocation(WFS wfs, String baseUrl) { return ResponseUtils.appendPath(RequestUtils.proxifiedBaseURL(baseUrl, wfs.getGeoServer().getProxyBaseUrl()), "schemas/wfs/1.0.0/WFS-versioning.xsd"); }
/** * Release locks if we are into that sort of thing. * * @see org.vfny.geoserver.responses.Response#abort() */ public void abort(Service gs) { if (request == null) { return; // request was not attempted } Data catalog = gs.getData(); }
/** * load purpose. * * <p> * Loads a new data set into this object. * </p> * * @param config */ public void load(WCSDTO config) { super.load(config.getService()); setGmlPrefixing(config.isGmlPrefixing()); //gmlPrefixing = config.isGmlPrefixing(); gs.save( wcs ); }
/** * Implement toDTO. * * <p> * Package method used by GeoServer. This method may return references, and * does not clone, so extreme caution sould be used when traversing the * results. * </p> * * @return WCSDTO An instance of the data this class represents. Please see * Caution Above. * * @see org.vfny.geoserver.global.GlobalLayerSupertype#toDTO() * @see WCSDTO */ public WCSDTO toDTO() { WCSDTO dto = new WCSDTO(); dto.setService((ServiceDTO) super.toDTO()); dto.setGmlPrefixing(isGmlPrefixing()); //dto.setGmlPrefixing(gmlPrefixing); return dto; }
super.load(config.getService());
w.setService((ServiceDTO) super.toDTO());
protected String typeSchemaLocation(WFS wfs, FeatureTypeInfo meta, String baseUrl) { final String proxifiedBase = RequestUtils.proxifiedBaseURL(baseUrl, wfs.getGeoServer().getProxyBaseUrl()); return ResponseUtils.appendQueryString(proxifiedBase + "wfs", "service=WFSV&version=1.0.0&request=DescribeVersionedFeatureType&typeName=" + meta.getName()); }
/** * DOCUMENT ME! * * @param request DOCUMENT ME! * * @throws ServiceException DOCUMENT ME! * @throws WmsException DOCUMENT ME! */ public void execute(Request request) throws ServiceException { this.request = (DescribeLayerRequest) request; if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine(new StringBuffer("executing request ").append(request).toString()); } this.transformer = new DescribeLayerTransformer(this.request.getBaseUrl(), request.getServiceConfig().getGeoServer(), request.getVersion()); this.transformer.setNamespaceDeclarationEnabled(false); Charset encoding = this.request.getWMS().getCharSet(); this.transformer.setEncoding(encoding); ByteArrayOutputStream out = new ByteArrayOutputStream(); try { transformer.transform(this.request, out); } catch (TransformerException e) { throw new WmsException(e); } this.content = out.toByteArray(); }
.getBaseUrl(), wfs.getGeoServer().getProxyBaseUrl()); encoder.setSchemaLocation(org.geoserver.wfsv.xml.v1_1_0.WFSV.NAMESPACE, ResponseUtils.appendPath(proxifiedBaseUrl,
/** * As currently GeoServer does not have support for nested layers, this * method declares a <code>LayerDescription</code> element for each * featuretype requested. * * @param req */ private void handleLayers(DescribeLayerRequest req) { MapLayerInfo layer; String url = RequestUtils.proxifiedBaseURL(req.getBaseUrl(),req.getServiceConfig().getGeoServer().getProxyBaseUrl()) + "wfs/WfsDispatcher?"; AttributesImpl layerAtts = new AttributesImpl(); layerAtts.addAttribute("", "name", "name", "", ""); layerAtts.addAttribute("", "wfs", "wfs", "", url); AttributesImpl queryAtts = new AttributesImpl(); queryAtts.addAttribute("", "typeName", "typeName", "", ""); for (Iterator it = req.getLayers().iterator(); it.hasNext();) { layer = (MapLayerInfo) it.next(); layerAtts.setAttribute(0, "", "name", "name", "", layer.getName()); start("LayerDescription", layerAtts); queryAtts.setAttribute(0, "", "typeName", "typeName", "", layer.getName()); element("Query", null, queryAtts); end("LayerDescription"); } } }
new StringBuffer(RequestUtils.proxifiedBaseURL( request.getBaseUrl() ,request.getServiceConfig().getGeoServer().getProxyBaseUrl() )); onlineResource.append("wms/GetLegendGraphic?VERSION=");
if (((config.getGeoServer().getContactPerson() != null) && (config.getGeoServer().getContactPerson() != "")) || ((config.getGeoServer().getContactOrganization() != null) && (config.getGeoServer().getContactOrganization() != ""))) { start("responsibleParty"); tmp = config.getGeoServer().getContactPerson(); tmp = config.getGeoServer().getContactOrganization(); tmp = config.getGeoServer().getContactOrganization(); tmp = config.getGeoServer().getContactPosition(); tmp = config.getGeoServer().getContactVoice(); tmp = config.getGeoServer().getContactFacsimile(); tmp = config.getGeoServer().getAddressType(); addr = config.getGeoServer().getAddress(); tmp = config.getGeoServer().getAddress(); tmp = config.getGeoServer().getAddressCity(); tmp = config.getGeoServer().getAddressState(); tmp = config.getGeoServer().getAddressPostalCode();
RequestUtils.proxifiedBaseURL(request.getBaseUrl(), request.getServiceConfig().getGeoServer().getProxyBaseUrl()) + "wms?SERVICE=WMS&";
int geoUS = request.getServiceConfig().getGeoServer().getUpdateSequence(); if (reqUS > geoUS) { throw new org.geoserver.platform.ServiceException("Client supplied an updateSequence that is greater than the current sever updateSequence","InvalidUpdateSequence");
int geoUS = request.getServiceConfig().getGeoServer().getUpdateSequence(); if (reqUS > geoUS) { throw new WcsException("Client supplied an updateSequence that is greater than the current sever updateSequence", WcsExceptionCode.InvalidUpdateSequence, "");
.getGeoServer().getProxyBaseUrl()); baseUrl = ResponseUtils.appendPath(baseUrl, "wcs");
public void write(Object value, OutputStream output, Operation describeFeatureType) throws IOException { VersionedDescribeResults results = (VersionedDescribeResults) value; // create the schema DescribeFeatureTypeType req = (DescribeFeatureTypeType) describeFeatureType .getParameters()[0]; String proxifiedBaseUrl = RequestUtils.proxifiedBaseURL(req .getBaseUrl(), wfs.getGeoServer().getProxyBaseUrl()); FeatureTypeSchemaBuilder builder = null; if (results.isVersioned()) { builder = new VersionedSchemaBuilder(wfs, catalog, resourceLoader, configuration); } else { builder = new FeatureTypeSchemaBuilder.GML3(wfs, catalog, resourceLoader); } XSDSchema schema = builder.build(results.getFeatureTypeInfo(), proxifiedBaseUrl); // serialize schema.updateElement(); XSDResourceImpl.serialize(output, schema.getElement()); }