|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlrpc.XmlRpcResponseProcessor
Process an Object and produce byte array that represents the specified encoding of the output as an XML-RPC response. This is NOT thread safe.
Field Summary | |
private static byte[] |
EMPTY_BYTE_ARRAY
|
Constructor Summary | |
XmlRpcResponseProcessor()
Creates a new instance. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final byte[] EMPTY_BYTE_ARRAY
Constructor Detail |
public XmlRpcResponseProcessor()
Method Detail |
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.IOException
java.io.UnsupportedEncodingException
XmlRpcException
public byte[] encodeException(java.lang.Exception x, java.lang.String encoding, int code)
encoding
- The output encoding.code
- The XML-RPC faultCode.
public byte[] encodeException(java.lang.Exception x, java.lang.String encoding)
encoding
- The output encoding.
void writeResponse(java.lang.Object param, XmlWriter writer) throws XmlRpcException, java.io.IOException
XmlRpcException
java.io.IOException
void writeError(int code, java.lang.String message, XmlWriter writer) throws XmlRpcException, java.io.IOException
XmlRpcException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |