public interface IResponseHandler
Modifier and Type | Method and Description |
---|---|
boolean |
canProcess(java.lang.String contentType)
Checks if the response can be processed by the handler
|
int |
convertResponseToXml(HttpMethod httpMethod,
IServerConnection serverConnection,
Document doc)
Converts the response bytes to XML.
|
java.util.Collection<java.lang.String> |
getSupportedContentTypes()
Returns supported content types
|
void |
initialize(int configXml,
IXSLTStore connector,
IMethodConfiguration method,
XPathMetaInfo xmi)
Initializes this handler.
|
int convertResponseToXml(HttpMethod httpMethod, IServerConnection serverConnection, Document doc) throws XMLException, ConnectorException, java.io.IOException
httpMethod
- HTTP method from which the response will be read.serverConnection
- Server connection information.doc
- NOM document.XMLException
- Thrown if the XML parsing failed.ConnectorException
java.io.IOException
void initialize(int configXml, IXSLTStore connector, IMethodConfiguration method, XPathMetaInfo xmi) throws ConnectorException
configXml
- Handler configuration XML from the method configuration.connector
- HTTP Connector instance.method
- MethodConfiguration to which this handler belongs to.xmi
- The XPathMetaInfo object containing the prefix ns mapped to
the proper namespace.ConnectorException
boolean canProcess(java.lang.String contentType)
contentType
- response content typejava.util.Collection<java.lang.String> getSupportedContentTypes()