Class GetFeatureResponseParserFactory
Object
AbstractWFSResponseFactory
AbstractGetFeatureResponseParserFactory
GetFeatureResponseParserFactory
- All Implemented Interfaces:
WFSResponseFactory
A WFS response parser factory for GetFeature requests in GML output formats.
Should eventually completely replace GmlGetFeatureResponseParserFactory as soon as it has been proven to work as well. For now only used for wfs 2.0 and gml 3.2.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canProcess
(WFSRequest request, String contentType) Checks if this factory can create a parser for the potential responses of the given WFS request.protected GetParser<SimpleFeature>
parser
(GetFeatureRequest request, InputStream in) Methods inherited from class AbstractGetFeatureResponseParserFactory
canProcess, createResponseImpl, getRequestedType, isAvailable, isValidResponseHead
Methods inherited from class AbstractWFSResponseFactory
createResponse, parseException
-
Constructor Details
-
GetFeatureResponseParserFactory
public GetFeatureResponseParserFactory()
-
-
Method Details
-
canProcess
Description copied from class:AbstractGetFeatureResponseParserFactory
Checks if this factory can create a parser for the potential responses of the given WFS request.For instance, this factory can create a parser as long as the request is a
GetFeature
request and the request output format matches"text/xml; subtype=gml/3.1.1"
.It also checks that the requested type is a SimpleFeatureType
- Specified by:
canProcess
in interfaceWFSResponseFactory
- Overrides:
canProcess
in classAbstractGetFeatureResponseParserFactory
- Returns:
true
if this factory can create a parser for the responses of the given request- See Also:
-
parser
protected GetParser<SimpleFeature> parser(GetFeatureRequest request, InputStream in) throws IOException - Specified by:
parser
in classAbstractGetFeatureResponseParserFactory
- Throws:
IOException
-
getSupportedOutputFormats
-
getSupportedVersions
- Specified by:
getSupportedVersions
in classAbstractGetFeatureResponseParserFactory
-