Class XmlRpcClientRequestImpl
java.lang.Object
org.apache.xmlrpc.client.XmlRpcClientRequestImpl
- All Implemented Interfaces:
XmlRpcRequest
Default implementation of
XmlRpcRequest.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final XmlRpcRequestConfigprivate final Stringprivate final Object[]private static final Object[] -
Constructor Summary
ConstructorsConstructorDescriptionXmlRpcClientRequestImpl(XmlRpcRequestConfig pConfig, String pMethodName, Object[] pParams) Creates a new instance.XmlRpcClientRequestImpl(XmlRpcRequestConfig pConfig, String pMethodName, List pParams) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the request configuration.Returns the requests method name.getParameter(int pIndex) Returns the parameter with indexpIndex.intReturns the number of parameters.
-
Field Details
-
ZERO_PARAMS
-
config
-
methodName
-
params
-
-
Constructor Details
-
XmlRpcClientRequestImpl
Creates a new instance.- Parameters:
pConfig- The request configuration.pMethodName- The method name being performed.pParams- The parameters.- Throws:
NullPointerException- One of the parameters is null.
-
XmlRpcClientRequestImpl
Creates a new instance.- Parameters:
pConfig- The request configuration.pMethodName- The method name being performed.pParams- The parameters.- Throws:
NullPointerException- The method name or the parameters are null.
-
-
Method Details
-
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
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
Description copied from interface:XmlRpcRequestReturns the request configuration.- Specified by:
getConfigin interfaceXmlRpcRequest- Returns:
- The request configuration.
-