org.apache.ws.jaxme.js.junit.xmlrpcclient
Class Dispatcher

java.lang.Object
  extended by org.apache.ws.jaxme.js.junit.xmlrpcclient.Dispatcher

public class Dispatcher
extends java.lang.Object

The dispatcher is being used by the XmlRpcServer. It delegates incoming XML-RPC calls to the classes and methods, for which client classes have been created by the org.apache.ws.jaxme.js.apps.XmlRpcClientGenerator.


Nested Class Summary
static interface Dispatcher.Invoker
          The dispatcher is implemented with a Map.
static class Dispatcher.Invoker0
          Invoker for method getSum() in class org.apache.ws.jaxme.js.junit.XmlRpcClientTestRemoteClass.
static class Dispatcher.Invoker1
          Invoker for method add(java.lang.String) in class org.apache.ws.jaxme.js.junit.XmlRpcClientTestRemoteClass.
static class Dispatcher.Invoker2
          Invoker for method add(int) in class org.apache.ws.jaxme.js.junit.XmlRpcClientTestRemoteClass.
static class Dispatcher.Invoker3
          Invoker for method add(int[]) in class org.apache.ws.jaxme.js.junit.XmlRpcClientTestRemoteClass.
static class Dispatcher.Invoker4
          Invoker for method getSumAsString() in class org.apache.ws.jaxme.js.junit.XmlRpcClientTestRemoteClass.
 
Constructor Summary
Dispatcher()
          Creates a new dispatcher.
 
Method Summary
 java.lang.Object execute(java.lang.String pName, java.util.Vector pParams)
          Called for invocation of method pName with the parameters given by pParams.
protected  Dispatcher.Invoker getInvoker(java.lang.String pName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dispatcher

public Dispatcher()
Creates a new dispatcher.

Method Detail

getInvoker

protected Dispatcher.Invoker getInvoker(java.lang.String pName)

execute

public java.lang.Object execute(java.lang.String pName,
                                java.util.Vector pParams)
                         throws java.lang.Exception
Called for invocation of method pName with the parameters given by pParams.

Throws:
java.lang.Exception