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, parseException
public boolean isAvailable()
WFSResponseFactory
true
if there's nothing preventing the creation of the parsers this factory
should producepublic boolean canProcess(WFSRequest originatingRequest, String contentType)
WFSResponseFactory
The 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
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 512Copyright © 1996–2022 Geotools. All rights reserved.