Class ComplexGetFeatureResponseParserFactory
- Object
-
- AbstractWFSResponseFactory
-
- AbstractGetFeatureResponseParserFactory
-
- ComplexGetFeatureResponseParserFactory
-
- All Implemented Interfaces:
WFSResponseFactory
public class ComplexGetFeatureResponseParserFactory extends AbstractGetFeatureResponseParserFactory
Creating GetFeatureResponse parsers that can treat featureType that don't extend SimpleFeatureType.Treats the same OutputFormats and Versions as GetFeatureResponseParserFactory.
- Author:
- Roar Brænden
-
-
Constructor Summary
Constructors Constructor Description ComplexGetFeatureResponseParserFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canProcess(WFSRequest request, String contentType)
Supporting GetFeature requests that also have request.getFullType() not being a SimpleFeatureType.protected WFSResponse
createResponseImpl(WFSRequest request, HTTPResponse response, InputStream in)
Wrapping a XmlComplexFeatureParser over the input stream.List<String>
getSupportedOutputFormats()
protected List<String>
getSupportedVersions()
protected GetParser<SimpleFeature>
parser(GetFeatureRequest request, InputStream in)
-
Methods inherited from class AbstractGetFeatureResponseParserFactory
canProcess, getRequestedType, isAvailable, isValidResponseHead
-
Methods inherited from class AbstractWFSResponseFactory
createResponse, parseException
-
-
-
-
Method Detail
-
canProcess
public boolean canProcess(WFSRequest request, String contentType)
Supporting GetFeature requests that also have request.getFullType() not being 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)
-
getSupportedVersions
protected List<String> getSupportedVersions()
- Specified by:
getSupportedVersions
in classAbstractGetFeatureResponseParserFactory
-
createResponseImpl
protected WFSResponse createResponseImpl(WFSRequest request, HTTPResponse response, InputStream in) throws IOException
Wrapping a XmlComplexFeatureParser over the input stream.Using "in" instead of response.getResponseStream()
- Overrides:
createResponseImpl
in classAbstractGetFeatureResponseParserFactory
in
- The stream to read the response from. It is safe not to close this stream explicitly but to dispose the response instead.- Returns:
- The actual response
- Throws:
IOException
-
parser
protected GetParser<SimpleFeature> parser(GetFeatureRequest request, InputStream in) throws IOException
- Specified by:
parser
in classAbstractGetFeatureResponseParserFactory
- Throws:
IOException
-
-