Package org.apache.xmlrpc.client
Class XmlRpcClientRequestImpl
- java.lang.Object
-
- org.apache.xmlrpc.client.XmlRpcClientRequestImpl
-
- All Implemented Interfaces:
XmlRpcRequest
public class XmlRpcClientRequestImpl extends java.lang.Object implements XmlRpcRequest
Default implementation ofXmlRpcRequest.
-
-
Field Summary
Fields Modifier and Type Field Description private XmlRpcRequestConfigconfigprivate java.lang.StringmethodNameprivate java.lang.Object[]paramsprivate static java.lang.Object[]ZERO_PARAMS
-
Constructor Summary
Constructors Constructor Description XmlRpcClientRequestImpl(XmlRpcRequestConfig pConfig, java.lang.String pMethodName, java.lang.Object[] pParams)Creates a new instance.XmlRpcClientRequestImpl(XmlRpcRequestConfig pConfig, java.lang.String pMethodName, java.util.List pParams)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlRpcRequestConfiggetConfig()Returns the request configuration.java.lang.StringgetMethodName()Returns the requests method name.java.lang.ObjectgetParameter(int pIndex)Returns the parameter with indexpIndex.intgetParameterCount()Returns the number of parameters.
-
-
-
Field Detail
-
ZERO_PARAMS
private static final java.lang.Object[] ZERO_PARAMS
-
config
private final XmlRpcRequestConfig config
-
methodName
private final java.lang.String methodName
-
params
private final java.lang.Object[] params
-
-
Constructor Detail
-
XmlRpcClientRequestImpl
public XmlRpcClientRequestImpl(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(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()
Description copied from interface:XmlRpcRequestReturns the requests method name.- Specified by:
getMethodNamein interfaceXmlRpcRequest- Returns:
- Name of the method being invoked.
-
getParameterCount
public int getParameterCount()
Description copied from interface:XmlRpcRequestReturns the number of parameters.- Specified by:
getParameterCountin interfaceXmlRpcRequest- Returns:
- Number of parameters.
-
getParameter
public java.lang.Object getParameter(int pIndex)
Description copied from interface:XmlRpcRequestReturns the parameter with indexpIndex.- Specified by:
getParameterin interfaceXmlRpcRequest- Parameters:
pIndex- Number between 0 andXmlRpcRequest.getParameterCount()-1.- Returns:
- Parameter being sent to the server.
-
getConfig
public XmlRpcRequestConfig getConfig()
Description copied from interface:XmlRpcRequestReturns the request configuration.- Specified by:
getConfigin interfaceXmlRpcRequest- Returns:
- The request configuration.
-
-