|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object redstone.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 fault message.
Constructor Summary | |
---|---|
ReflectiveInvocationHandler()
Constructs the handler and sets the current object as the target. |
|
ReflectiveInvocationHandler(java.lang.Object target)
Constructs the handler and sets the supplied object 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.List 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 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 java.lang.Object invoke(java.lang.String methodName, java.util.List 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
- Any kind of exception may occurr in the method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |