public class HessianProxy
extends java.lang.Object
implements java.lang.reflect.InvocationHandler, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected HessianProxyFactory |
_factory |
| Modifier | Constructor and Description |
|---|---|
protected |
HessianProxy(java.net.URL url,
HessianProxyFactory factory)
Protected constructor for subclassing
|
protected |
HessianProxy(java.net.URL url,
HessianProxyFactory factory,
java.lang.Class<?> type)
Protected constructor for subclassing
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRequestHeaders(HessianConnection conn)
Method that allows subclasses to add request headers such as cookies.
|
protected java.io.InputStream |
getInputStream(HessianConnection conn) |
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 void |
parseResponseHeaders(java.net.URLConnection conn)
Method that allows subclasses to parse response headers such as cookies.
|
protected HessianConnection |
sendRequest(java.lang.String methodName,
java.lang.Object[] args)
Sends the HTTP request to the Hessian connection.
|
java.lang.Object |
writeReplace() |
protected HessianProxyFactory _factory
protected HessianProxy(java.net.URL url,
HessianProxyFactory factory)
protected HessianProxy(java.net.URL url,
HessianProxyFactory factory,
java.lang.Class<?> type)
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.InvocationHandlerproxy - the proxy object to invokemethod - the method to callargs - the arguments to the proxy objectjava.lang.Throwableprotected java.io.InputStream getInputStream(HessianConnection conn) throws java.io.IOException
java.io.IOExceptionprotected java.lang.String mangleName(java.lang.reflect.Method method)
protected HessianConnection sendRequest(java.lang.String methodName, java.lang.Object[] args) throws java.io.IOException
java.io.IOExceptionprotected void addRequestHeaders(HessianConnection conn)
protected void parseResponseHeaders(java.net.URLConnection conn)
conn - public java.lang.Object writeReplace()