Class GetFeatureResponseParserFactory
- Object
-
- AbstractWFSResponseFactory
-
- AbstractGetFeatureResponseParserFactory
-
- GetFeatureResponseParserFactory
-
- All Implemented Interfaces:
WFSResponseFactory
public class GetFeatureResponseParserFactory extends AbstractGetFeatureResponseParserFactory
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 Constructor Description GetFeatureResponseParserFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canProcess(WFSRequest request, String contentType)
Checks if this factory can create a parser for the potential responses of the given WFS request.List<String>
getSupportedOutputFormats()
protected List<String>
getSupportedVersions()
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
-
-
-
-
Method Detail
-
canProcess
public boolean canProcess(WFSRequest request, String contentType)
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:
WFSResponseFactory.canProcess(WFSRequest, String)
-
parser
protected GetParser<SimpleFeature> parser(GetFeatureRequest request, InputStream in) throws IOException
- Specified by:
parser
in classAbstractGetFeatureResponseParserFactory
- Throws:
IOException
-
getSupportedVersions
protected List<String> getSupportedVersions()
- Specified by:
getSupportedVersions
in classAbstractGetFeatureResponseParserFactory
-
-