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 booleancanProcess(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.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:
canProcessin interfaceWFSResponseFactory- Overrides:
canProcessin classAbstractGetFeatureResponseParserFactory- Returns:
trueif 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:
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
-
-