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 TypeMethodDescriptionbooleancanProcess(WFSRequest request, String contentType) Supporting GetFeature requests that also have request.getFullType() not being a SimpleFeatureType.protected WFSResponsecreateResponseImpl(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, isValidResponseHeadMethods 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:
canProcessin interfaceWFSResponseFactory- Overrides:
canProcessin classAbstractGetFeatureResponseParserFactory- Returns:
trueif this factory can create a parser for the responses of the given request- See Also:
-
getSupportedOutputFormats
-
getSupportedVersions
- Specified by:
getSupportedVersionsin 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:
createResponseImplin classAbstractGetFeatureResponseParserFactoryin- 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:
parserin classAbstractGetFeatureResponseParserFactory- Throws:
IOException
-