public class XmlRpcProxy
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
createProxy(java.lang.String host,
int port,
java.lang.String path,
java.lang.Class[] interfaces)
Creates a new dynamic proxy object that implements all
supplied interfaces.
|
static java.lang.Object |
createProxy(java.lang.String host,
int port,
java.lang.String path,
java.lang.String objectName,
java.lang.Class[] interfaces)
Creates a new dynamic proxy object that implements all
supplied interfaces.
|
static java.lang.Object |
createProxy(java.net.URL url,
java.lang.Class[] interfaces)
Creates a new dynamic proxy object that implements all
supplied interfaces.
|
static java.lang.Object |
createProxy(java.net.URL url,
java.lang.String objectName,
java.lang.Class[] interfaces)
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 calles invoked on the proxy object.
|
public static java.lang.Object createProxy(java.lang.String host,
int port,
java.lang.String path,
java.lang.Class[] interfaces)
throws XmlRpcException
host - The host of the XML-RPC server that will receive
calls through the interfacesport - The port of the XML-RPC server that will receive
calls through the interfacespath - The path of the XML-RPC server that will receive
calls through the interfacesinterfaces - The list of interfaces the proxy should
implementXmlRpcExceptionpublic static java.lang.Object createProxy(java.lang.String host,
int port,
java.lang.String path,
java.lang.String objectName,
java.lang.Class[] interfaces)
throws XmlRpcException
host - The host of the XML-RPC server that will receive
calls through the interfacesport - The port of the XML-RPC server that will receive
calls through the interfacespath - The path of the XML-RPC server that will receive
calls through the interfacesobjectName - The name under which the handler is reachableinterfaces - The list of interfaces the proxy should implementXmlRpcExceptionpublic static java.lang.Object createProxy(java.net.URL url,
java.lang.Class[] interfaces)
throws XmlRpcException
url - The XML-RPC server that will receive calls through
the interfacesinterfaces - The list of interfaces the proxy should
implementXmlRpcExceptionpublic static java.lang.Object createProxy(java.net.URL url,
java.lang.String objectName,
java.lang.Class[] interfaces)
throws XmlRpcException
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
reachableXmlRpcExceptionpublic java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerSee - the Dynamic Proxy API in JDK 1.3java.lang.Throwable