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

Class 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 java.util.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 getSumAsString() 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 add(java.lang.String) in class org.apache.ws.jaxme.js.junit.XmlRpcClientTestRemoteClass.

Constructor Summary

Dispatcher()
Creates a new dispatcher.

Method Summary

Object
execute(String pName, Vector pParams)
Called for invocation of method pName with the parameters given by pParams.
protected Dispatcher.Invoker
getInvoker(String pName)

Constructor Details

Dispatcher

public Dispatcher()
Creates a new dispatcher.

Method Details

execute

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

getInvoker

protected Dispatcher.Invoker getInvoker(String pName)