org.apache.xmlrpc
Class XmlRpcClientRequestProcessor

java.lang.Object
  extended byorg.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.java,v 1.5 2005/05/14 21:31:48 jochen Exp $
Author:
Hannes Wallnoefer, Andrew Evers

Constructor Summary
XmlRpcClientRequestProcessor()
          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
 

Constructor Detail

XmlRpcClientRequestProcessor

public XmlRpcClientRequestProcessor()
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.
Returns:
byte [] the encoded request.
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 © 1999-2002 Apache Software Foundation. All Rights Reserved.