Class ComplexGetFeatureResponseParserFactory
Object
AbstractWFSResponseFactory
AbstractGetFeatureResponseParserFactory
ComplexGetFeatureResponseParserFactory
- All Implemented Interfaces:
WFSResponseFactory
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 -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.protected GetParser<SimpleFeature>
parser
(GetFeatureRequest request, InputStream in) Methods inherited from class AbstractGetFeatureResponseParserFactory
canProcess, getRequestedType, isAvailable, isValidResponseHead
Methods inherited from class AbstractWFSResponseFactory
createResponse, parseException
-
Constructor Details
-
ComplexGetFeatureResponseParserFactory
public ComplexGetFeatureResponseParserFactory()
-
-
Method Details
-
canProcess
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:
-
getSupportedOutputFormats
-
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
-