org.simject.remoting.client
Class HttpClientProxy
java.lang.Object
org.simject.remoting.client.HttpClientProxy
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler
public final class HttpClientProxy
- extends java.lang.Object
- implements java.lang.reflect.InvocationHandler
Used to provide remote access over HTTP to a resource. HttpClientProxy uses
XStream for XML serialization or normal Java serialization for binary
protocol
- Author:
- Simon Martinelli
|
Method Summary |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
static java.lang.Object |
newInstance(java.lang.ClassLoader loader,
java.lang.Class<?>[] interfaces,
java.lang.String target)
Creates a new instance of a proxy |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
newInstance
public static java.lang.Object newInstance(java.lang.ClassLoader loader,
java.lang.Class<?>[] interfaces,
java.lang.String target)
throws java.net.MalformedURLException
- Creates a new instance of a proxy
- Parameters:
loader - interfaces - url -
- Returns:
- an instance of HttpClientProxy
- Throws:
java.net.MalformedURLException
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Specified by:
invoke in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
Copyright © 2008. All Rights Reserved.