public class ReflectiveInvocationHandler extends java.lang.Object implements XmlRpcInvocationHandler
Constructor and Description |
---|
ReflectiveInvocationHandler()
Constructs the handler and sets the current object
(from the class extending this class) as the target.
|
ReflectiveInvocationHandler(java.lang.Object target)
Constructs the handler and sets the supplied objects
as the invocation target.
|
ReflectiveInvocationHandler(java.lang.Object target,
java.lang.String[] entryPoints)
Constructs the handler and sets the supplied objects
as the invocation target.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
invoke(java.lang.String methodName,
java.util.Collection arguments)
Called by the XmlRpcServer when a method is to be invoked.
|
void |
setEntryPoints(java.lang.String[] entryPoints)
Assigns a list of method names that are used when invoking
methods on this handler.
|
public ReflectiveInvocationHandler()
public ReflectiveInvocationHandler(java.lang.Object target)
target
- The object to wrap up.public ReflectiveInvocationHandler(java.lang.Object target, java.lang.String[] entryPoints)
target
- The object to wrap up.entryPoints
- A list of method names that should be available for invocation.public final void setEntryPoints(java.lang.String[] entryPoints)
A null entry point list means all public methods are available.
entryPoints
- A list of method names that may be invoked on this handler, or
null if all methods should be available.public final java.lang.Object invoke(java.lang.String methodName, java.util.Collection arguments) throws java.lang.Throwable
invoke
in interface XmlRpcInvocationHandler
methodName
- The name of the method to call.arguments
- A vector containting all arguments required by the method.java.lang.Throwable
- may throw any Exception