|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object redstone.xmlrpc.XmlRpcProxy
public class XmlRpcProxy
An XmlRpcProxy lets you use the services of an XML-RPC server through Java interfaces. It uses the Dynamic Proxy API introduced in JDK 1.3 to dynamically convert calls through Java interfaces to XML-RPC messages. This may be an improvement over the XmlRpcClient since using a server through Java interfaces allows compilation-time type checking, IDE code completion, and prevents typos and other errors.
Method Summary | |
---|---|
static java.lang.Object |
createProxy(java.net.URL url,
java.lang.Class[] interfaces,
boolean streamMessages)
Creates a new dynamic proxy object that implements all the supplied interfaces. |
static java.lang.Object |
createProxy(java.net.URL url,
java.lang.String objectName,
java.lang.Class[] interfaces,
boolean streamMessages)
Creates a new dynamic proxy object that implements all supplied interfaces. |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Handles method calls invoked on the proxy object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.Object createProxy(java.net.URL url, java.lang.Class[] interfaces, boolean streamMessages)
url
- The XML-RPC server that will receive calls through
the interfaces.interfaces
- The list of interfaces the proxy should
implement.
public static java.lang.Object createProxy(java.net.URL url, java.lang.String objectName, java.lang.Class[] interfaces, boolean streamMessages)
url
- The XML-RPC server that will receive calls through
the interfacesinterfaces
- The list of interfaces the proxy should
implementobjectName
- The name under which the handler is
reachable
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws XmlRpcException, XmlRpcFault
invoke
in interface java.lang.reflect.InvocationHandler
XmlRpcException
XmlRpcFault
Dynamic Proxy API in JDK 1.3
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |