org.apache.xmlrpc.client
Class XmlRpcClientRequestImpl

java.lang.Object
  extended by org.apache.xmlrpc.client.XmlRpcClientRequestImpl
All Implemented Interfaces:
org.apache.xmlrpc.XmlRpcRequest

public class XmlRpcClientRequestImpl
extends java.lang.Object
implements org.apache.xmlrpc.XmlRpcRequest

Default implementation of XmlRpcRequest.


Field Summary
private  org.apache.xmlrpc.XmlRpcRequestConfig config
           
private  java.lang.String methodName
           
private  java.lang.Object[] params
           
private static java.lang.Object[] ZERO_PARAMS
           
 
Constructor Summary
XmlRpcClientRequestImpl(org.apache.xmlrpc.XmlRpcRequestConfig pConfig, java.lang.String pMethodName, java.util.List pParams)
          Creates a new instance.
XmlRpcClientRequestImpl(org.apache.xmlrpc.XmlRpcRequestConfig pConfig, java.lang.String pMethodName, java.lang.Object[] pParams)
          Creates a new instance.
 
Method Summary
 org.apache.xmlrpc.XmlRpcRequestConfig getConfig()
           
 java.lang.String getMethodName()
           
 java.lang.Object getParameter(int pIndex)
           
 int getParameterCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZERO_PARAMS

private static final java.lang.Object[] ZERO_PARAMS

config

private final org.apache.xmlrpc.XmlRpcRequestConfig config

methodName

private final java.lang.String methodName

params

private final java.lang.Object[] params
Constructor Detail

XmlRpcClientRequestImpl

public XmlRpcClientRequestImpl(org.apache.xmlrpc.XmlRpcRequestConfig pConfig,
                               java.lang.String pMethodName,
                               java.lang.Object[] pParams)
Creates a new instance.

Parameters:
pConfig - The request configuration.
pMethodName - The method name being performed.
pParams - The parameters.
Throws:
java.lang.NullPointerException - One of the parameters is null.

XmlRpcClientRequestImpl

public XmlRpcClientRequestImpl(org.apache.xmlrpc.XmlRpcRequestConfig pConfig,
                               java.lang.String pMethodName,
                               java.util.List pParams)
Creates a new instance.

Parameters:
pConfig - The request configuration.
pMethodName - The method name being performed.
pParams - The parameters.
Throws:
java.lang.NullPointerException - The method name or the parameters are null.
Method Detail

getMethodName

public java.lang.String getMethodName()
Specified by:
getMethodName in interface org.apache.xmlrpc.XmlRpcRequest

getParameterCount

public int getParameterCount()
Specified by:
getParameterCount in interface org.apache.xmlrpc.XmlRpcRequest

getParameter

public java.lang.Object getParameter(int pIndex)
Specified by:
getParameter in interface org.apache.xmlrpc.XmlRpcRequest

getConfig

public org.apache.xmlrpc.XmlRpcRequestConfig getConfig()
Specified by:
getConfig in interface org.apache.xmlrpc.XmlRpcRequest