public class HessianProxy
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
Modifier and Type | Class and Description |
---|---|
(package private) static class |
HessianProxy.ResultInputStream |
Modifier and Type | Field and Description |
---|---|
private HessianProxyFactory |
_factory |
private java.util.WeakHashMap<java.lang.reflect.Method,java.lang.String> |
_mangleMap |
private java.net.URL |
_url |
private static java.util.logging.Logger |
log |
Constructor and Description |
---|
HessianProxy(HessianProxyFactory factory,
java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
java.net.URL |
getURL()
Returns the proxy's URL.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Handles the object invocation.
|
protected java.lang.String |
mangleName(java.lang.reflect.Method method) |
protected java.net.URLConnection |
sendRequest(java.lang.String methodName,
java.lang.Object[] args) |
private static final java.util.logging.Logger log
private HessianProxyFactory _factory
private java.util.WeakHashMap<java.lang.reflect.Method,java.lang.String> _mangleMap
private java.net.URL _url
HessianProxy(HessianProxyFactory factory, java.net.URL url)
public java.net.URL getURL()
public 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.InvocationHandler
proxy
- the proxy object to invokemethod
- the method to callargs
- the arguments to the proxy objectjava.lang.Throwable
protected java.lang.String mangleName(java.lang.reflect.Method method)
protected java.net.URLConnection sendRequest(java.lang.String methodName, java.lang.Object[] args) throws java.io.IOException
java.io.IOException