public String getWebURL() { String url = OGCFrontController.getHttpGetURL() + "service=WPS&version=1.0.0&request=GetOutput&identifier=" + id; return url; }
private String createUrlWithStartindex( Map<String, String> kvpGetFeature, int startIndex ) { kvpGetFeature.put( "STARTINDEX", "" + startIndex ); return OGCFrontController.getHttpGetURL() + KVPUtils.toQueryString( kvpGetFeature ); }
private void doGetResponseDocument( String responseId, HttpResponseBuffer response ) { LOG.trace( "doGetResponseDocument invoked, requested stored response document: " + responseId ); ResponseDocumentStorage resource = storageManager.lookupResponseDocumentStorage( responseId, getHttpGetURL() ); executeHandler.sendResponseDocument( response, resource ); LOG.trace( "doGetResponseDocument finished" ); }
public WMTSCapabilitiesWriter( XMLStreamWriter writer, ServiceIdentification identification, ServiceProvider provider, List<Theme> themes, String mdurltemplate, FeatureInfoManager mgr ) { this.writer = writer; this.provider = provider; this.themes = themes; if ( mdurltemplate == null || mdurltemplate.isEmpty() ) { mdurltemplate = OGCFrontController.getHttpGetURL(); if ( !( mdurltemplate.endsWith( "?" ) || mdurltemplate.endsWith( "&" ) ) ) { mdurltemplate += "?"; } mdurltemplate += "service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http%3A//www.isotc211.org/2005/gmd&elementSetName=full&id=${metadataSetId}"; } this.mdurltemplate = mdurltemplate; this.mdwriter = new WmtsCapabilitiesMetadataWriter( writer, identification ); this.layerWriter = new WmtsLayerWriter( mgr, writer, this ); }
private static void exportOperationsMetadata( XMLStreamWriter writer, List<String> operations, DCPType dcp ) throws XMLStreamException { writer.writeStartElement( WCS_100_NS, "Request" ); writer.writeDefaultNamespace( WCS_100_NS ); for ( String operation : operations ) { writer.writeStartElement( WCS_100_NS, operation ); writer.writeStartElement( WCS_100_NS, "DCPType" ); writer.writeStartElement( WCS_100_NS, "HTTP" ); if ( !isEmpty( OGCFrontController.getHttpGetURL() ) ) { writer.writeStartElement( WCS_100_NS, "Get" ); writer.writeNamespace( XLINK_PREFIX, XLN_NS ); writeElement( writer, WCS_100_NS, "OnlineResource", XLN_NS, "href", OGCFrontController.getHttpGetURL() ); writer.writeEndElement(); // Get } if ( !isEmpty( OGCFrontController.getHttpPostURL() ) ) { writer.writeStartElement( WCS_100_NS, "Post" ); writer.writeNamespace( XLINK_PREFIX, XLN_NS ); writeElement( writer, WCS_100_NS, "OnlineResource", XLN_NS, "href", OGCFrontController.getHttpPostURL() ); writer.writeEndElement(); // Post } writer.writeEndElement(); // HTTP writer.writeEndElement(); // DCPType writer.writeEndElement(); // operation } writer.writeEndElement(); // Request }
private static void exportOperationsMetadata( XMLStreamWriter writer ) throws XMLStreamException { List<Operation> operations = new LinkedList<Operation>(); List<DCP> dcps = null; try { DCP dcp = new DCP( new URL( OGCFrontController.getHttpGetURL() ), new URL( OGCFrontController.getHttpPostURL() ) ); dcps = Collections.singletonList( dcp ); } catch ( MalformedURLException e ) { // should never happen } List<Domain> params = new ArrayList<Domain>(); List<Domain> constraints = new ArrayList<Domain>(); List<OMElement> mdEls = new ArrayList<OMElement>(); operations.add( new Operation( "GetCapabilities", dcps, params, constraints, mdEls ) ); operations.add( new Operation( "DescribeProcess", dcps, params, constraints, mdEls ) ); operations.add( new Operation( "Execute", dcps, params, constraints, mdEls ) ); OperationsMetadata operationsMd = new OperationsMetadata( operations, params, constraints, null ); exportOperationsMetadata110( writer, operationsMd ); }
void exportOperationsMetadata() throws XMLStreamException { List<Operation> operations = new LinkedList<Operation>(); List<DCP> dcps = null; try { DCP dcp = new DCP( new URL( OGCFrontController.getHttpGetURL() ), null ); dcps = Collections.singletonList( dcp ); } catch ( MalformedURLException e ) { // should never happen } List<Domain> params = new ArrayList<Domain>(); List<Domain> constraints = new ArrayList<Domain>(); constraints.add( new Domain( "GetEncoding", Collections.singletonList( "KVP" ) ) ); List<OMElement> mdEls = new ArrayList<OMElement>(); operations.add( new Operation( "GetCapabilities", dcps, params, constraints, mdEls ) ); operations.add( new Operation( "GetTile", dcps, params, constraints, mdEls ) ); operations.add( new Operation( "GetFeatureInfo", dcps, params, constraints, mdEls ) ); OperationsMetadata operationsMd = new OperationsMetadata( operations, params, constraints, null ); exportOperationsMetadata110( writer, operationsMd ); }
private void export202( XMLStreamWriter writer, Set<Sections> sections, ServiceIdentificationType identification, DeegreeServicesMetadataType mainControllerConf, DeegreeServiceControllerType mainConf ) throws XMLStreamException { writer.writeStartElement( CSW_PREFIX, "Capabilities", CSW_202_NS ); writer.writeNamespace( CSW_PREFIX, CSW_202_NS ); writer.writeNamespace( OWS_PREFIX, OWS_NS ); writer.writeNamespace( OGC_PREFIX, OGCNS ); writer.writeNamespace( XLINK_PREFIX, XLN_NS ); writer.writeNamespace( XSI_PREFIX, XSINS ); writer.writeAttribute( "version", "2.0.2" ); writer.writeAttribute( XSINS, "schemaLocation", CSW_202_NS + " " + CSW_202_DISCOVERY_SCHEMA ); // ows:ServiceIdentification if ( sections.isEmpty() || sections.contains( Sections.ServiceIdentification ) ) { gcHelper.exportServiceIdentification( writer, identification, "CSW", "2.0.2", null ); } // ows:ServiceProvider if ( sections.isEmpty() || sections.contains( Sections.ServiceProvider ) ) { exportServiceProvider100Old( writer, mainControllerConf.getServiceProvider() ); } // ows:OperationsMetadata if ( sections.isEmpty() || sections.contains( Sections.OperationsMetadata ) ) { exportOperationsMetadata( writer, OGCFrontController.getHttpGetURL(), OGCFrontController.getHttpPostURL(), OWS_NS ); } // mandatory FilterCapabilitiesExporter.export110( writer ); writer.writeEndElement(); writer.writeEndDocument(); }
exportOperationsMetadata( writer, OGCFrontController.getHttpGetURL(), OGCFrontController.getHttpPostURL(), OWS_NS );
private String buildDescribeFeatureTypeRequest( DescribeFeatureType request, String namespace ) { Map<String, String> nsBindings = new HashMap<String, String>(); nsBindings.put( "", namespace ); DescribeFeatureType subRequest = new DescribeFeatureType( request.getVersion(), null, request.getOutputFormat(), null, nsBindings ); String baseURL = OGCFrontController.getHttpGetURL(); String paramPart = DescribeFeatureTypeKVPAdapter.export( subRequest, request.getVersion() ); return baseURL + paramPart; }
String serverAddress = OGCFrontController.getHttpGetURL(); String systemStartDate = "2010-11-16"; String organizationName = null;
baseUrl.append( OGCFrontController.getHttpGetURL() ); baseUrl.append( "SERVICE=WFS&VERSION=" ); baseUrl.append( version );
@SuppressWarnings("unchecked") private void sendCapabilities( Map<String, String> map, HttpServletRequest request, HttpResponseBuffer response ) throws IOException { GetCapabilities req = GetCapabilitiesKVPParser.parse( map ); XMLOutputFactory factory = XMLOutputFactory.newInstance(); factory.setProperty( IS_REPAIRING_NAMESPACES, true ); try { XMLStreamWriter xsw = factory.createXMLStreamWriter( response.getOutputStream(), "UTF-8" ); IndentingXMLStreamWriter xmlWriter = new IndentingXMLStreamWriter( xsw ); List<Operation> operations = new ArrayList<Operation>(); List<DCP> dcps = Collections.singletonList( new DCP( new URL( OGCFrontController.getHttpGetURL() ), null ) ); List<Domain> params = Collections.emptyList(); List<Domain> constraints = Collections.emptyList(); for ( String operation : allowedOperations ) { operations.add( new Operation( operation, dcps, params, constraints, EMPTY_LIST ) ); } OperationsMetadata operationsMd = new OperationsMetadata( operations, params, constraints, null ); new CapabilitiesXMLAdapter().export040( xmlWriter, req, identification, provider, operationsMd, service.getServiceConfiguration() ); xmlWriter.writeEndDocument(); } catch ( XMLStreamException e ) { throw new IOException( e ); } }
String baseUrl = OGCFrontController.getHttpGetURL() + "SERVICE=WFS&VERSION=" + version + "&"; String template = null; try { if ( VERSION_100.equals( version ) ) { baseUrl = OGCFrontController.getHttpGetURL() + "SERVICE=WFS&VERSION=1.1.0&"; template = baseUrl + "REQUEST=GetGmlObject&OUTPUTFORMAT=" + URLEncoder.encode( gmlVersion.getMimeTypeOldStyle(), "UTF-8" )
private void doGetCapabilities( Map<String, String> map, HttpResponseBuffer response, String updateSequence, GetCapabilities req ) throws OWSException, IOException { Version myVersion = negotiateVersion( req ); String getUrl = OGCFrontController.getHttpGetURL(); String postUrl = OGCFrontController.getHttpPostURL(); if ( metadataProvider != null ) { controllers.get( myVersion ).getCapabilities( getUrl, postUrl, updateSequence, service, response, metadataProvider.getServiceIdentification(), metadataProvider.getServiceProvider(), map, this, metadataProvider ); } else { controllers.get( myVersion ).getCapabilities( getUrl, postUrl, updateSequence, service, response, identification, provider, map, this, null ); } response.flushBuffer(); // TODO remove this to enable validation, enable validation on a DTD basis... }
List<DCP> post = null; try { getAndPost = Collections.singletonList( new DCP( new URL( getHttpGetURL() ), new URL( getHttpPostURL() ) ) ); post = singletonList( new DCP( null, new URL( getHttpPostURL() ) ) ); get = singletonList( new DCP( new URL( getHttpGetURL() ), null ) ); } catch ( MalformedURLException e ) {
writer.writeStartElement( WFS_NS, "Request" ); String getURL = OGCFrontController.getHttpGetURL(); String postURL = OGCFrontController.getHttpPostURL();
for ( String s : md.getImplementedServiceName() ) { if ( s.equalsIgnoreCase( "csw" ) ) { metadataUrlTemplate = OGCFrontController.getHttpGetURL(); if ( !metadataUrlTemplate.endsWith( "?" ) ) { metadataUrlTemplate = metadataUrlTemplate + "?";
URL serviceInstance = new URL( OGCFrontController.getHttpGetURL() + "service=WPS&request=GetCapabilities&version=1.0.0" ); responseStorage = storageManager.newResponseDocumentStorage( OGCFrontController.getHttpGetURL() );
String loc = getHttpGetURL() + "request=GetFeatureInfoSchema&layers=" + join( ",", queryLayers );