Package org.geotools.data.wfs.internal
Interface WFSResponseFactory
-
- All Known Implementing Classes:
AbstractGetFeatureResponseParserFactory,AbstractWFSResponseFactory,ComplexGetFeatureResponseParserFactory,DescribeFeatureTypeResponseFactory,DescribeStoredQueriesResponseFactory,GetFeatureResponseParserFactory,GmlGetFeatureResponseParserFactory,ListStoredQueriesResponseFactory,ServiceExceptionResponseFactory,TransactionResponseFactory
public interface WFSResponseFactoryA factory interface meant to be used through the usual GeoTools SPI mechanism to dynamically find out a parser capable of processing a WFS response based on the request to be sent.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanProcess(WFSOperationType operation)booleancanProcess(WFSRequest originatingRequest, String contentType)Indicates whether this factory is able to produce a parser that deals with the possible responses of the given WFS request.WFSResponsecreateResponse(WFSRequest request, HTTPResponse response)Creates a response for the given WFS request.List<String>getSupportedOutputFormats()booleanisAvailable()Indicates whether the factory instance is able to create parser instances.
-
-
-
Method Detail
-
isAvailable
boolean isAvailable()
Indicates whether the factory instance is able to create parser instances.- Returns:
trueif there's nothing preventing the creation of the parsers this factory should produce
-
canProcess
boolean canProcess(WFSRequest originatingRequest, String contentType)
Indicates whether this factory is able to produce a parser that deals with the possible responses of the given WFS request.The decision may usually be made depending on the request type, ouput format, etc
- Returns:
trueif this factory can create a parser for the responses of the given request
-
createResponse
WFSResponse createResponse(WFSRequest request, HTTPResponse response) throws ServiceException, IOException
Creates a response for the given WFS request.- Parameters:
response- the handle to the response contents the WFS sent- Returns:
- a
WFSResponsethat can deal with the given request and response - Throws:
ServiceExceptionIOException
-
canProcess
boolean canProcess(WFSOperationType operation)
-
-