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, parseExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSupportedOutputFormatspublic AbstractGetFeatureResponseParserFactory()
public boolean isAvailable()
WFSResponseFactorytrue 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
AbstractWFSResponseFactoryWFSResponse.createResponseImpl in class AbstractWFSResponseFactoryin - The stream to read the response from. It is safe not to close this stream
     explicitly but to dispose the response instead.IOExceptionprotected boolean isValidResponseHead(String head)
isValidResponseHead in class AbstractWFSResponseFactoryhead - 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
IOExceptionCopyright © 1996–2019 Geotools. All rights reserved.