public class XmlRpcClientRequestImpl extends java.lang.Object implements XmlRpcRequest
XmlRpcRequest
.Modifier and Type | Field and Description |
---|---|
private XmlRpcRequestConfig |
config |
private java.lang.String |
methodName |
private java.lang.Object[] |
params |
private static java.lang.Object[] |
ZERO_PARAMS |
Constructor and Description |
---|
XmlRpcClientRequestImpl(XmlRpcRequestConfig pConfig,
java.lang.String pMethodName,
java.util.List pParams)
Creates a new instance.
|
XmlRpcClientRequestImpl(XmlRpcRequestConfig pConfig,
java.lang.String pMethodName,
java.lang.Object[] pParams)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
XmlRpcRequestConfig |
getConfig()
Returns the request configuration.
|
java.lang.String |
getMethodName()
Returns the requests method name.
|
java.lang.Object |
getParameter(int pIndex)
Returns the parameter with index
pIndex . |
int |
getParameterCount()
Returns the number of parameters.
|
private static final java.lang.Object[] ZERO_PARAMS
private final XmlRpcRequestConfig config
private final java.lang.String methodName
private final java.lang.Object[] params
public XmlRpcClientRequestImpl(XmlRpcRequestConfig pConfig, java.lang.String pMethodName, java.lang.Object[] pParams)
pConfig
- The request configuration.pMethodName
- The method name being performed.pParams
- The parameters.java.lang.NullPointerException
- One of the parameters is null.public XmlRpcClientRequestImpl(XmlRpcRequestConfig pConfig, java.lang.String pMethodName, java.util.List pParams)
pConfig
- The request configuration.pMethodName
- The method name being performed.pParams
- The parameters.java.lang.NullPointerException
- The method name or the parameters are null.public java.lang.String getMethodName()
XmlRpcRequest
getMethodName
in interface XmlRpcRequest
public int getParameterCount()
XmlRpcRequest
getParameterCount
in interface XmlRpcRequest
public java.lang.Object getParameter(int pIndex)
XmlRpcRequest
pIndex
.getParameter
in interface XmlRpcRequest
pIndex
- Number between 0 and XmlRpcRequest.getParameterCount()
-1.public XmlRpcRequestConfig getConfig()
XmlRpcRequest
getConfig
in interface XmlRpcRequest