org.apache.xmlrpc
Class XmlRpcResponseProcessor

java.lang.Object
  |
  +--org.apache.xmlrpc.XmlRpcResponseProcessor

public class XmlRpcResponseProcessor
extends java.lang.Object

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.

Since:
1.2
Author:
Andrew Evers, Hannes Wallnoefer, Daniel Rall

Constructor Summary
XmlRpcResponseProcessor()
           
 
Method Summary
 byte[] processException(java.lang.Exception x, java.lang.String encoding)
          Process an exception, and return output in the specified encoding.
 byte[] processResponse(java.lang.Object responseParam, java.lang.String encoding)
          Process a successful response, and return output in the specified encoding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlRpcResponseProcessor

public XmlRpcResponseProcessor()
Method Detail

processResponse

public byte[] processResponse(java.lang.Object responseParam,
                              java.lang.String encoding)
                       throws java.io.IOException,
                              java.io.UnsupportedEncodingException,
                              XmlRpcException
Process a successful response, and return output in the specified encoding.
Parameters:
responseParam - The response to process.
encoding - The output encoding.
Returns:
byte[] The XML-RPC response.

processException

public byte[] processException(java.lang.Exception x,
                               java.lang.String encoding)
Process an exception, and return output in the specified encoding.
Parameters:
e - The exception to process;
encoding - The output encoding.
Returns:
byte[] The XML-RPC response.


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.