public class TransactionResponseFactory extends AbstractWFSResponseFactory
| Constructor and Description |
|---|
TransactionResponseFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProcess(WFSOperationType operation) |
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.
|
protected WFSResponse |
createResponseImpl(WFSRequest request,
HTTPResponse response,
InputStream in)
Has to be implemented to turn the request and response into a proper
WFSResponse. |
List<String> |
getSupportedOutputFormats() |
boolean |
isAvailable()
Indicates whether the factory instance is able to create parser instances.
|
protected boolean |
isValidResponseHead(String head) |
createResponse, parseExceptionpublic boolean isAvailable()
WFSResponseFactorytrue if there's nothing preventing the creation of the parsers this factory
should producepublic boolean canProcess(WFSRequest originatingRequest, String contentType)
WFSResponseFactoryThe decision may usually be made depending on the request type, ouput format, etc
true if this factory can create a parser for the responses of the given
requestpublic boolean canProcess(WFSOperationType operation)
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 512Copyright © 1996–2019 Geotools. All rights reserved.