Class TransactionResponseFactory
- Object
-
- AbstractWFSResponseFactory
-
- TransactionResponseFactory
-
- All Implemented Interfaces:
WFSResponseFactory
public class TransactionResponseFactory extends AbstractWFSResponseFactory
-
-
Constructor Summary
Constructors Constructor Description TransactionResponseFactory()
-
Method Summary
All Methods Instance Methods Concrete 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.protected WFSResponsecreateResponseImpl(WFSRequest request, HTTPResponse response, InputStream in)Has to be implemented to turn the request and response into a properWFSResponse.List<String>getSupportedOutputFormats()booleanisAvailable()Indicates whether the factory instance is able to create parser instances.protected booleanisValidResponseHead(String head)-
Methods inherited from class AbstractWFSResponseFactory
createResponse, parseException
-
-
-
-
Method Detail
-
isAvailable
public boolean isAvailable()
Description copied from interface:WFSResponseFactoryIndicates 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
public boolean canProcess(WFSRequest originatingRequest, String contentType)
Description copied from interface:WFSResponseFactoryIndicates 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
-
canProcess
public boolean canProcess(WFSOperationType operation)
-
createResponseImpl
protected WFSResponse createResponseImpl(WFSRequest request, HTTPResponse response, InputStream in) throws IOException
Description copied from class:AbstractWFSResponseFactoryHas to be implemented to turn the request and response into a properWFSResponse.- Specified by:
createResponseImplin classAbstractWFSResponseFactoryin- The stream to read the response from. It is safe not to close this stream explicitly but to dispose the response instead.- Returns:
- The actual response
- Throws:
IOException
-
isValidResponseHead
protected boolean isValidResponseHead(String head)
- Specified by:
isValidResponseHeadin classAbstractWFSResponseFactory- Parameters:
head- The first couple of characters from the response, typically the first 512- Returns:
- true, if head is an indicator for the expected XML result structure.
-
-