de.dfki.util.xmlrpc.client
Class MethodCall

java.lang.Object
  extended by de.dfki.util.xmlrpc.client.MethodCall

public class MethodCall
extends java.lang.Object

Class to control parameter population for a XML-RPC call. Does type conversions of parameter and return values. Checks validity of supplied parameters on basis of the given MethodSignature.

Author:
lauer

Method Summary
 void add(java.lang.Object param)
           
 void addParameter(boolean p)
          Deprecated. 
 void addParameter(java.lang.Boolean p)
          Deprecated. 
 void addParameter(byte[] p)
          Deprecated. 
<T> void
addParameter(java.util.Collection<T> p)
          Deprecated. 
 void addParameter(java.util.Date p)
          Deprecated. 
 void addParameter(double p)
          Deprecated. 
 void addParameter(java.lang.Double p)
          Deprecated. 
 void addParameter(int p)
          Deprecated. 
 void addParameter(java.lang.Integer p)
          Deprecated. 
<T,K> void
addParameter(java.util.Map<T,K> p)
          Deprecated. 
 void addParameter(java.lang.String p)
          Deprecated. 
 void addParameters(java.lang.Object... param)
          Add a bunch of parameters.
 java.lang.Object convertReturnValueToUserRepresentation(java.lang.Object xmlReturnValue)
           
 MethodSignature getMethodSignature()
           
 java.lang.String getName()
           
 int getParameterCount()
           
 java.util.Vector<java.lang.Object> getParameters()
           
 void validateCall()
          Checks, if the current call (with all added parameters) is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMethodSignature

public MethodSignature getMethodSignature()

addParameter

@Deprecated
public void addParameter(java.lang.String p)
                  throws MethodCallParameterException
Deprecated. 

Throws:
MethodCallParameterException

addParameter

@Deprecated
public void addParameter(java.lang.Boolean p)
                  throws MethodCallParameterException
Deprecated. 

Throws:
MethodCallParameterException

addParameter

@Deprecated
public void addParameter(boolean p)
                  throws MethodCallParameterException
Deprecated. 

Throws:
MethodCallParameterException

addParameter

@Deprecated
public void addParameter(int p)
                  throws MethodCallParameterException
Deprecated. 

Throws:
MethodCallParameterException

addParameter

@Deprecated
public void addParameter(java.lang.Integer p)
                  throws MethodCallParameterException
Deprecated. 

Throws:
MethodCallParameterException

addParameter

@Deprecated
public void addParameter(double p)
                  throws MethodCallParameterException
Deprecated. 

Throws:
MethodCallParameterException

addParameter

@Deprecated
public void addParameter(java.lang.Double p)
                  throws MethodCallParameterException
Deprecated. 

Throws:
MethodCallParameterException

addParameter

@Deprecated
public void addParameter(java.util.Date p)
                  throws MethodCallParameterException
Deprecated. 

Throws:
MethodCallParameterException

addParameter

@Deprecated
public <T,K> void addParameter(java.util.Map<T,K> p)
                  throws MethodCallParameterException
Deprecated. 

Throws:
MethodCallParameterException

addParameter

@Deprecated
public <T> void addParameter(java.util.Collection<T> p)
                  throws MethodCallParameterException
Deprecated. 

Throws:
MethodCallParameterException

addParameter

@Deprecated
public void addParameter(byte[] p)
                  throws MethodCallParameterException
Deprecated. 

Throws:
MethodCallParameterException

add

public void add(java.lang.Object param)
         throws MethodCallParameterException
Throws:
MethodCallParameterException

addParameters

public void addParameters(java.lang.Object... param)
                   throws MethodCallParameterException
Add a bunch of parameters.

Throws:
MethodCallParameterException

getParameterCount

public int getParameterCount()

getParameters

public java.util.Vector<java.lang.Object> getParameters()

getName

public java.lang.String getName()

validateCall

public void validateCall()
                  throws MethodCallParameterException
Checks, if the current call (with all added parameters) is valid.

Throws:
MethodCallParameterException - Thrown, iff call is not valid for some reason.

convertReturnValueToUserRepresentation

public java.lang.Object convertReturnValueToUserRepresentation(java.lang.Object xmlReturnValue)
                                                        throws TypeConversionException
Throws:
TypeConversionException


Copyright © 2012. All Rights Reserved.