org.apache.xmlrpc

Class XmlRpcClientRequestProcessor


public class XmlRpcClientRequestProcessor
extends java.lang.Object

Process an XML-RPC client request into a byte array or directly onto an OutputStream.
Version:
$Id: XmlRpcClientRequestProcessor.java 350048 2005-11-30 21:49:32 +0100 (Mi, 30 Nov 2005) jochen $
Authors:
Hannes Wallnoefer
Andrew Evers
Since:
1.2

Field Summary

(package private) TimeZone
tz

Constructor Summary

XmlRpcClientRequestProcessor(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, String encoding, OutputStream out)
Encode a request from the XmlClientRpcRequest implementation to an output stream in the specified character encoding.
byte[]
encodeRequestBytes(XmlRpcClientRequest request, String encoding)
Encode a request from the XmlRpcClientRequest implementation to a byte array representing the XML-RPC call, in the specified character encoding.

Field Details

tz

(package private)  TimeZone tz

Constructor Details

XmlRpcClientRequestProcessor

public XmlRpcClientRequestProcessor(TimeZone tz)
Creates a new instance.

Method Details

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.

encodeRequest

public void encodeRequest(XmlRpcClientRequest request,
                          String encoding,
                          OutputStream out)
            throws XmlRpcClientException,
                   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.

encodeRequestBytes

public byte[] encodeRequestBytes(XmlRpcClientRequest request,
                                 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.

Copyright B) 1999-2002 Apache Software Foundation. All Rights Reserved.