|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.services.controller.AbstractOWS org.deegree.services.wfs.WebFeatureService
public class WebFeatureService
Implementation of the OpenGIS Web Feature Service server protocol.
Supported WFS protocol versions:
AbstractOWS
,
OGCFrontController
Field Summary |
---|
Fields inherited from class org.deegree.services.controller.AbstractOWS |
---|
mainControllerConf, mainMetadataConf, offeredVersions, serviceInfo, workspace |
Constructor Summary | |
---|---|
WebFeatureService(URL configURL,
ImplementationMetadata serviceInfo)
|
Method Summary | |
---|---|
protected Version |
checkVersion(Version requestedVersion)
Checks if a request version can be handled by this controller (i.e. if is supported by the implementation *and* offered by the current configuration). |
void |
destroy()
Usually called by the ResourceManager upon workspace shutdown. |
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 OWS to handle an OGC-KVP 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. |
boolean |
getCheckAreaOfUse()
|
ICRS |
getDefaultQueryCrs()
|
Pair<XMLExceptionSerializer<OWSException>,String> |
getExceptionSerializer(Version requestVersion)
Returns the ExceptionSerializer and mime-type suitable for the given request version. |
int |
getMaxFeatures()
|
static String |
getSchemaLocation(Version version,
GMLVersion gmlVersion,
QName... fts)
Returns the value for the 'xsi:schemaLocation' attribute to be included in a GetGmlObject or
GetFeature response. |
WFSFeatureStoreManager |
getStoreManager()
Returns the underlying WFSFeatureStoreManager instance. |
static XMLStreamWriter |
getXMLResponseWriter(HttpResponseBuffer writer,
String mimeType,
String schemaLocation)
Returns an XMLStreamWriter for writing an XML response document. |
void |
init(DeegreeServicesMetadataType serviceMetadata,
DeegreeServiceControllerType mainConf,
ImplementationMetadata<?> md,
XMLAdapter controllerConf)
Initializes the AbstractOWS instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebFeatureService(URL configURL, ImplementationMetadata serviceInfo)
Method Detail |
---|
public void init(DeegreeServicesMetadataType serviceMetadata, DeegreeServiceControllerType mainConf, ImplementationMetadata<?> md, XMLAdapter controllerConf) throws ResourceInitException
AbstractOWS
AbstractOWS
instance.
init
in class AbstractOWS
controllerConf
- controller configuration, must not be null
ResourceInitException
public void destroy()
Resource
ResourceManager
upon workspace shutdown.
public WFSFeatureStoreManager getStoreManager()
WFSFeatureStoreManager
instance.
WFSFeatureStoreManager
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
OWS
OGCFrontController
to allow this OWS
to handle an OGC-KVP request.
kvpParamsUC
- 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.
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
OWS
OGCFrontController
to allow this OWS
to handle an OGC-XML request.
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 static String getSchemaLocation(Version version, GMLVersion gmlVersion, QName... fts)
GetGmlObject
or
GetFeature
response.
version
- WFS protocol version, must not be null
gmlVersion
- requested GML version, must not be null
fts
- types of features included in the response, must not be null
public static XMLStreamWriter getXMLResponseWriter(HttpResponseBuffer writer, String mimeType, String schemaLocation) throws XMLStreamException, IOException
XMLStreamWriter
for writing an XML response document.
writer
- writer to write the XML to, must not be null
mimeType
- mime type, must not be null
schemaLocation
- value for the 'xsi:schemaLocation' attribute in the root element, can be null
XMLStreamException
IOException
public Pair<XMLExceptionSerializer<OWSException>,String> getExceptionSerializer(Version requestVersion)
AbstractOWS
ExceptionSerializer
and mime-type suitable for the given request version.
getExceptionSerializer
in interface OWS
getExceptionSerializer
in class AbstractOWS
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
public int getMaxFeatures()
public boolean getCheckAreaOfUse()
public ICRS getDefaultQueryCrs()
protected Version checkVersion(Version requestedVersion) throws OWSException
NOTE: This method does use exception code OWSException.INVALID_PARAMETER_VALUE
, not
OWSException.VERSION_NEGOTIATION_FAILED
-- the latter should only be used for failed GetCapabilities
requests.
checkVersion
in class AbstractOWS
requestedVersion
- version to be checked, may be null (causes exception)
requestedVersion
(if it is not null), or highest version supported
OWSException
- if the requested version is not available
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |