org.deegree.services
Interface OWS

All Known Implementing Classes:
AbstractOGCServiceController, CSWController, SOSController, WCSController, WFSController, WMSController, WPService, WPVSController

public interface OWS

Implementations are OGC web services that plug into the OGCFrontController.

Version:
$Revision: $, $Date: $
Author:
Markus Schneider, last edited by: $Author: markus $
See Also:
OWSProvider, OGCFrontController

Method Summary
 void destroy()
          Called by the OGCFrontController to indicate to this OWS that it is being taken out of service.
 void doKVP(java.util.Map<java.lang.String,java.lang.String> normalizedKVPParams, javax.servlet.http.HttpServletRequest request, HttpResponseBuffer response, java.util.List<org.apache.commons.fileupload.FileItem> multiParts)
          Called by the OGCFrontController to allow this OWS to handle an OGC-KVP request.
 void doSOAP(org.apache.axiom.soap.SOAPEnvelope soapDoc, javax.servlet.http.HttpServletRequest request, HttpResponseBuffer response, java.util.List<org.apache.commons.fileupload.FileItem> multiParts, org.apache.axiom.soap.SOAPFactory factory)
          Called by the OGCFrontController to allow this OWS to handle an OGC-SOAP request.
 void doXML(javax.xml.stream.XMLStreamReader xmlStream, javax.servlet.http.HttpServletRequest request, HttpResponseBuffer response, java.util.List<org.apache.commons.fileupload.FileItem> multiParts)
          Called by the OGCFrontController to allow this OWS to handle an OGC-XML request.
 void init(org.deegree.commons.xml.XMLAdapter controllerConf, DeegreeServicesMetadataType serviceMetadata, DeegreeServiceControllerType serviceController)
          Called by the OGCFrontController to indicate to this OWS that it is being taken into service.
 

Method Detail

doKVP

void doKVP(java.util.Map<java.lang.String,java.lang.String> normalizedKVPParams,
           javax.servlet.http.HttpServletRequest request,
           HttpResponseBuffer response,
           java.util.List<org.apache.commons.fileupload.FileItem> multiParts)
           throws javax.servlet.ServletException,
                  java.io.IOException,
                  SecurityException
Called by the OGCFrontController to allow this OWS to handle an OGC-KVP request.

Parameters:
normalizedKVPParams - request parameters (keys are uppercased), never null
request - provides access to all information of the original HTTP request (NOTE: may be GET or POST), never null
response - response that is sent to the client, never null
multiParts - A list of multiparts contained in the request. If the request was not a multipart request the list will be null. If multiparts were found, the requestDoc will be the first (xml-lized) FileItem in the list.
Throws:
javax.servlet.ServletException
java.io.IOException
SecurityException

doXML

void doXML(javax.xml.stream.XMLStreamReader xmlStream,
           javax.servlet.http.HttpServletRequest request,
           HttpResponseBuffer response,
           java.util.List<org.apache.commons.fileupload.FileItem> multiParts)
           throws javax.servlet.ServletException,
                  java.io.IOException,
                  SecurityException
Called by the OGCFrontController to allow this OWS to handle an OGC-XML request.

Parameters:
xmlStream - provides access to the XML request, cursor points to the START_ELEMENT event of the root element, never null
request - provides access to all information of the original HTTP request (NOTE: may be GET or POST), never null
response - response that is sent to the client, never null
multiParts - A list of multiparts contained in the request. If the request was not a multipart request the list will be null. If multiparts were found, the xmlStream will provide access to the first (xml-lized) FileItem in the list of multi parts
Throws:
javax.servlet.ServletException
java.io.IOException
SecurityException

doSOAP

void doSOAP(org.apache.axiom.soap.SOAPEnvelope soapDoc,
            javax.servlet.http.HttpServletRequest request,
            HttpResponseBuffer response,
            java.util.List<org.apache.commons.fileupload.FileItem> multiParts,
            org.apache.axiom.soap.SOAPFactory factory)
            throws javax.servlet.ServletException,
                   java.io.IOException,
                   SecurityException
Called by the OGCFrontController to allow this OWS to handle an OGC-SOAP request.

Parameters:
soapDoc - XMLAdapter for parsing the SOAP request document, never null
request - provides access to all information of the original HTTP request (NOTE: may be GET or POST), never null
response - response that is sent to the client, never null
multiParts - A list of multiparts contained in the request. If the request was not a multipart request the list will be null. If multiparts were found, the requestDoc will be the first (xml-lized) FileItem in the list.
factory - initialized to the soap version of the request, never null
Throws:
javax.servlet.ServletException
java.io.IOException - if an IOException occurred
SecurityException

init

void init(org.deegree.commons.xml.XMLAdapter controllerConf,
          DeegreeServicesMetadataType serviceMetadata,
          DeegreeServiceControllerType serviceController)
          throws ControllerInitException
Called by the OGCFrontController to indicate to this OWS that it is being taken into service.

Parameters:
controllerConf - provides access to the (always xml-based) configuration of the controller
serviceMetadata - services metadata from the main service configuration for all services
serviceController - from the main.xml
Throws:
ControllerInitException - indicates that the initialization failed

destroy

void destroy()
Called by the OGCFrontController to indicate to this OWS that it is being taken out of service.



Copyright © 2011. All Rights Reserved.