public class XmlRpcResponseProcessor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static byte[] |
EMPTY_BYTE_ARRAY |
| Constructor and Description |
|---|
XmlRpcResponseProcessor()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
encodeException(java.lang.Exception x,
java.lang.String encoding)
Process an exception, and return output in the specified
encoding.
|
byte[] |
encodeException(java.lang.Exception x,
java.lang.String encoding,
int code)
Process an exception, and return output in the specified
encoding.
|
byte[] |
encodeResponse(java.lang.Object responseParam,
java.lang.String encoding)
Process a successful response, and return output in the
specified encoding.
|
(package private) void |
writeError(int code,
java.lang.String message,
XmlWriter writer)
Writes an XML-RPC error response to the XML writer.
|
(package private) void |
writeResponse(java.lang.Object param,
XmlWriter writer)
Writes an XML-RPC response to the XML writer.
|
public byte[] encodeResponse(java.lang.Object responseParam,
java.lang.String encoding)
throws java.io.IOException,
java.io.UnsupportedEncodingException,
XmlRpcException
responseParam - The response to process.encoding - The output encoding.java.io.IOExceptionjava.io.UnsupportedEncodingExceptionXmlRpcExceptionpublic byte[] encodeException(java.lang.Exception x,
java.lang.String encoding,
int code)
e - The exception to process;encoding - The output encoding.code - The XML-RPC faultCode.public byte[] encodeException(java.lang.Exception x,
java.lang.String encoding)
e - The exception to process;encoding - The output encoding.void writeResponse(java.lang.Object param,
XmlWriter writer)
throws XmlRpcException,
java.io.IOException
XmlRpcExceptionjava.io.IOExceptionvoid writeError(int code,
java.lang.String message,
XmlWriter writer)
throws XmlRpcException,
java.io.IOException
XmlRpcExceptionjava.io.IOExceptionCopyright ? 1999-2002 Apache Software Foundation. All Rights Reserved.