public abstract class AbstractGetFeatureResponseParserFactory extends AbstractWFSResponseFactory
Constructor and Description |
---|
AbstractGetFeatureResponseParserFactory() |
Modifier and Type | Method and Description |
---|---|
boolean |
canProcess(WFSOperationType operation) |
boolean |
canProcess(WFSRequest request,
String contentType)
Checks if this factory can create a parser for the potential responses of the given WFS
request.
|
protected WFSResponse |
createResponseImpl(WFSRequest request,
HTTPResponse response,
InputStream in)
Has to be implemented to turn the request and response into a proper
WFSResponse . |
protected abstract List<String> |
getSupportedVersions() |
boolean |
isAvailable()
Indicates whether the factory instance is able to create parser instances.
|
protected boolean |
isValidResponseHead(String head) |
protected abstract GetFeatureParser |
parser(GetFeatureRequest request,
InputStream in) |
createResponse, parseException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSupportedOutputFormats
public AbstractGetFeatureResponseParserFactory()
public boolean isAvailable()
WFSResponseFactory
true
if there's nothing preventing the creation of the parsers this factory
should produceWFSResponseFactory.isAvailable()
public boolean canProcess(WFSRequest request, String contentType)
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"
.
true
if this factory can create a parser for the responses of the given
requestWFSResponseFactory#canProcess(WFSOperationType, String)
protected WFSResponse createResponseImpl(WFSRequest request, HTTPResponse response, InputStream in) throws IOException
AbstractWFSResponseFactory
WFSResponse
.createResponseImpl
in class AbstractWFSResponseFactory
in
- The stream to read the response from. It is safe not to close this stream
explicitly but to dispose the response instead.IOException
protected boolean isValidResponseHead(String head)
isValidResponseHead
in class AbstractWFSResponseFactory
head
- The first couple of characters from the response, typically the first 512public boolean canProcess(WFSOperationType operation)
protected abstract GetFeatureParser parser(GetFeatureRequest request, InputStream in) throws IOException
IOException
Copyright © 1996–2019 Geotools. All rights reserved.