org.deegree.services
Interface OWS

All Superinterfaces:
Resource
All Known Implementing Classes:
AbstractOWS, CSWController, SOSController, WCSController, WebFeatureService, WMSController, WPService, WPVSController

public interface OWS
extends Resource

Implementations are OGC web services.

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

Method Summary
 void doKVP(Map<String,String> normalizedKVPParams, javax.servlet.http.HttpServletRequest request, HttpResponseBuffer response, 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, 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(XMLStreamReader xmlStream, javax.servlet.http.HttpServletRequest request, HttpResponseBuffer response, List<org.apache.commons.fileupload.FileItem> multiParts)
          Called by the OGCFrontController to allow this OWS to handle an OGC-XML request.
 Pair<XMLExceptionSerializer<OWSException>,String> getExceptionSerializer(Version requestVersion)
          Returns the ExceptionSerializer and mime-type suitable for the given request version.
 ImplementationMetadata<?> getImplementationMetadata()
          Deprecated. 
 
Methods inherited from interface org.deegree.commons.config.Resource
destroy, init
 

Method Detail

doKVP

void doKVP(Map<String,String> normalizedKVPParams,
           javax.servlet.http.HttpServletRequest request,
           HttpResponseBuffer response,
           List<org.apache.commons.fileupload.FileItem> multiParts)
           throws javax.servlet.ServletException,
                  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
IOException
SecurityException

doXML

void doXML(XMLStreamReader xmlStream,
           javax.servlet.http.HttpServletRequest request,
           HttpResponseBuffer response,
           List<org.apache.commons.fileupload.FileItem> multiParts)
           throws javax.servlet.ServletException,
                  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
IOException
SecurityException

doSOAP

void doSOAP(org.apache.axiom.soap.SOAPEnvelope soapDoc,
            javax.servlet.http.HttpServletRequest request,
            HttpResponseBuffer response,
            List<org.apache.commons.fileupload.FileItem> multiParts,
            org.apache.axiom.soap.SOAPFactory factory)
            throws javax.servlet.ServletException,
                   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
IOException - if an IOException occurred
SecurityException

getImplementationMetadata

@Deprecated
ImplementationMetadata<?> getImplementationMetadata()
Deprecated. 

Returns:
the same implementation metadata that the accompanying (if available) OWSProvider would return (it's here for backward compatibility regarding custom controller classes)

getExceptionSerializer

Pair<XMLExceptionSerializer<OWSException>,String> getExceptionSerializer(Version requestVersion)
Returns the ExceptionSerializer and mime-type suitable for the given request version.

Parameters:
requestVersion - version of the request for which the exception has to be produced, may be null (implies that the serializer and mime type for the highest supported version shall be returned)
Returns:
never null


Copyright © 2011. All Rights Reserved.