|
deegree-services-3.0-pre-nightly (2010/03/05 00:04) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.services.controller.AbstractOGCServiceController org.deegree.services.controller.wps.WPSController
public class WPSController
Handles WPS (WebProcessingService) protocol requests and acts as the link between the OGCFrontController
and
the WPService
.
Supported WPS protocol versions:
WPService
,
AbstractOGCServiceController
,
OGCFrontController
Field Summary |
---|
Fields inherited from class org.deegree.services.controller.AbstractOGCServiceController |
---|
JAXB_CONFIG_CLASSPATH, mainControllerConf, offeredVersions |
Constructor Summary | |
---|---|
WPSController()
|
Method Summary | |
---|---|
void |
destroy()
Called by the OGCFrontController to indicate to a subcontroller that the subcontroller is being taken out
of service. |
void |
doKVP(Map<String,String> kvpParamsUC,
javax.servlet.http.HttpServletRequest request,
HttpResponseBuffer response,
List<org.apache.commons.fileupload.FileItem> multiParts)
Called by the OGCFrontController to allow this AbstractOGCServiceController to handle a 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 AbstractOGCServiceController to handle a 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 AbstractOGCServiceController to handle an XML
request. |
org.deegree.commons.utils.Pair<XMLExceptionSerializer<OWSException>,String> |
getExceptionSerializer(org.deegree.commons.types.ows.Version requestVersion)
Returns the ExceptionSerializer and mime-type suitable for the given request version. |
ExecutionManager |
getExecutionManager()
Returns the associated ExecutionManager instance. |
WPService |
getService()
Returns the underlying WPService instance. |
void |
init(org.deegree.commons.xml.XMLAdapter controllerConf,
DeegreeServicesMetadata serviceMetadata)
Called by the OGCFrontController to indicate to a subcontroller that it is being taken into service. |
(package private) void |
sendServiceException(OWSException ex,
HttpResponseBuffer response)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WPSController()
Method Detail |
---|
public void init(org.deegree.commons.xml.XMLAdapter controllerConf, DeegreeServicesMetadata serviceMetadata) throws ControllerInitException
AbstractOGCServiceController
OGCFrontController
to indicate to a subcontroller that it is being taken into service.
init
in class AbstractOGCServiceController
controllerConf
- provides access to the (always xml-based) configuration of the controllerserviceMetadata
- services metadata from the main service configuration for all services
ControllerInitException
- indicates that the initialization failedpublic void destroy()
AbstractOGCServiceController
OGCFrontController
to indicate to a subcontroller that the subcontroller is being taken out
of service.
destroy
in class AbstractOGCServiceController
public void doKVP(Map<String,String> kvpParamsUC, javax.servlet.http.HttpServletRequest request, HttpResponseBuffer response, List<org.apache.commons.fileupload.FileItem> multiParts) throws javax.servlet.ServletException, IOException
AbstractOGCServiceController
OGCFrontController
to allow this AbstractOGCServiceController
to handle a KVP
request.
doKVP
in class AbstractOGCServiceController
kvpParamsUC
- request parameters (keys are uppercased)request
- provides access to all information of the original HTTP request (NOTE: may be GET or POST)response
- response that is sent to the clientmultiParts
- 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.
javax.servlet.ServletException
IOException
public void doXML(XMLStreamReader xmlStream, javax.servlet.http.HttpServletRequest request, HttpResponseBuffer response, List<org.apache.commons.fileupload.FileItem> multiParts) throws javax.servlet.ServletException, IOException
AbstractOGCServiceController
OGCFrontController
to allow this AbstractOGCServiceController
to handle an XML
request.
doXML
in class AbstractOGCServiceController
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
javax.servlet.ServletException
IOException
public 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
AbstractOGCServiceController
OGCFrontController
to allow this AbstractOGCServiceController
to handle a SOAP
request.
doSOAP
in class AbstractOGCServiceController
soapDoc
- XMLAdapter
for parsing the SOAP request documentrequest
- provides access to all information of the original HTTP request (NOTE: may be GET or POST)response
- response that is sent to the clientmultiParts
- 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.
javax.servlet.ServletException
IOException
- if an IOException occurredpublic WPService getService()
WPService
instance.
WPService
public ExecutionManager getExecutionManager()
ExecutionManager
instance.
ExecutionManager
void sendServiceException(OWSException ex, HttpResponseBuffer response) throws javax.servlet.ServletException
javax.servlet.ServletException
public org.deegree.commons.utils.Pair<XMLExceptionSerializer<OWSException>,String> getExceptionSerializer(org.deegree.commons.types.ows.Version requestVersion)
AbstractOGCServiceController
ExceptionSerializer
and mime-type suitable for the given request version.
getExceptionSerializer
in class AbstractOGCServiceController
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)
null
|
deegree-services-3.0-pre-nightly (2010/03/05 00:04) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |