org.apache.xmlrpc
public class XmlRpcResponseProcessor extends Object
Since: 1.2
| Field Summary | |
|---|---|
| static byte[] | EMPTY_BYTE_ARRAY |
| Constructor Summary | |
|---|---|
| XmlRpcResponseProcessor()
Creates a new instance. | |
| Method Summary | |
|---|---|
| byte[] | encodeException(Exception x, String encoding, int code)
Process an exception, and return output in the specified
encoding.
|
| byte[] | encodeException(Exception x, String encoding)
Process an exception, and return output in the specified
encoding.
|
| byte[] | encodeResponse(Object responseParam, String encoding)
Process a successful response, and return output in the
specified encoding.
|
| void | writeError(int code, String message, XmlWriter writer)
Writes an XML-RPC error response to the XML writer. |
| void | writeResponse(Object param, XmlWriter writer)
Writes an XML-RPC response to the XML writer. |
Parameters: e The exception to process; encoding The output encoding. code The XML-RPC faultCode.
Returns: byte[] The XML-RPC response.
Parameters: e The exception to process; encoding The output encoding.
Returns: byte[] The XML-RPC response.
Parameters: responseParam The response to process. encoding The output encoding.
Returns: byte[] The XML-RPC response.