public class RestRequestHandler extends StandardRequestHandler
DEFAULT_CONTENT_TYPE, m_method
Constructor and Description |
---|
RestRequestHandler() |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
getPostData(int requestNode,
IServerConnection connection)
This method returns the data that should be put into the post data.
|
protected java.lang.String |
getRequestUri(int requestNode,
IServerConnection connection,
HttpClient httpClient)
Returns the URI for this request.
|
void |
initialize(int configXml,
IXSLTStore connector,
IMethodConfiguration method,
XPathMetaInfo xmi)
Initializes this handler.
|
convertXmlToBytes, executeXslt, getContentType, handleRequestXPath, postProcessXml, preProcessXml, process
getPerformanceCounters, setPerformanceCounters
public void initialize(int configXml, IXSLTStore connector, IMethodConfiguration method, XPathMetaInfo xmi) throws HandlerException
IRequestHandler
initialize
in interface IRequestHandler
initialize
in class StandardRequestHandler
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.HandlerException
- In case of any exceptions.StandardRequestHandler.initialize(int, IXSLTStore,
IMethodConfiguration, XPathMetaInfo)
protected java.lang.String getRequestUri(int requestNode, IServerConnection connection, HttpClient httpClient)
StandardRequestHandler
getRequestUri
in class StandardRequestHandler
requestNode
- Incoming request XML node.connection
- Current connection.httpClient
- HTTP client object.null
.StandardRequestHandler.getRequestUri(int, IServerConnection,
HttpClient)
protected byte[] getPostData(int requestNode, IServerConnection connection) throws HandlerException
StandardRequestHandler
getPostData
in class StandardRequestHandler
requestNode
- The current request XML.connection
- The current server connection.HandlerException
- In case of any exceptions.