|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmarquee.xmlrpc.handlers.ReflectiveInvocationHandler
public class ReflectiveInvocationHandler
Note that methods that are to be called over XML-RPC need to be public, or the client will receive a java.lang.NoSuchMethod exception.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |