org.apache.xmlrpc
Class XmlRpcClientRequestProcessor

java.lang.Object
  extended by org.apache.xmlrpc.XmlRpcClientRequestProcessor

public class XmlRpcClientRequestProcessor
extends java.lang.Object

Process an XML-RPC client request into a byte array or directly onto an OutputStream.

Since:
1.2
Version:
$Id: XmlRpcClientRequestProcessor.html 359531 2005-12-28 13:59:25Z jochen $
Author:
Hannes Wallnoefer, Andrew Evers

Field Summary
(package private)  java.util.TimeZone tz
           
 
Constructor Summary
XmlRpcClientRequestProcessor(java.util.TimeZone tz)
          Creates a new instance.
 
Method Summary
protected  boolean canReUse()
          Called by the worker management framework to see if this object can be re-used.
 void encodeRequest(XmlRpcClientRequest request, java.lang.String encoding, java.io.OutputStream out)
          Encode a request from the XmlClientRpcRequest implementation to an output stream in the specified character encoding.
 byte[] encodeRequestBytes(XmlRpcClientRequest request, java.lang.String encoding)
          Encode a request from the XmlRpcClientRequest implementation to a byte array representing the XML-RPC call, in the specified character encoding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tz

java.util.TimeZone tz
Constructor Detail

XmlRpcClientRequestProcessor

public XmlRpcClientRequestProcessor(java.util.TimeZone tz)
Creates a new instance.

Method Detail

encodeRequest

public void encodeRequest(XmlRpcClientRequest request,
                          java.lang.String encoding,
                          java.io.OutputStream out)
                   throws XmlRpcClientException,
                          java.io.IOException
Encode a request from the XmlClientRpcRequest implementation to an output stream in the specified character encoding.

Parameters:
request - the request to encode.
encoding - the Java name for the encoding to use.
Throws:
XmlRpcClientException
java.io.IOException

encodeRequestBytes

public byte[] encodeRequestBytes(XmlRpcClientRequest request,
                                 java.lang.String encoding)
                          throws XmlRpcClientException
Encode a request from the XmlRpcClientRequest implementation to a byte array representing the XML-RPC call, in the specified character encoding.

Parameters:
request - the request to encode.
encoding - the Java name for the encoding to use.
Returns:
byte [] the encoded request.
Throws:
XmlRpcClientException

canReUse

protected boolean canReUse()
Called by the worker management framework to see if this object can be re-used. Must attempt to clean up any state, and return true if it can be re-used.

Returns:
boolean true if this objcet has been cleaned up and may be re-used.


Copyright 2001-2001-2005 Apache Software Foundation. All Rights Reserved.