|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.hessian.client.HessianProxy
public class HessianProxy
Proxy implementation for Hessian clients. Applications will generally use HessianProxyFactory to create proxy clients.
Nested Class Summary | |
---|---|
(package private) static class |
HessianProxy.LogWriter
|
(package private) static class |
HessianProxy.ResultInputStream
|
Field Summary | |
---|---|
protected HessianProxyFactory |
_factory
|
private java.util.WeakHashMap<java.lang.reflect.Method,java.lang.String> |
_mangleMap
|
private java.lang.Class<?> |
_type
|
private java.net.URL |
_url
|
private static java.util.logging.Logger |
log
|
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
protected void |
addRequestHeaders(HessianConnection conn)
Method that allows subclasses to add request headers such as cookies. |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.util.logging.Logger log
protected HessianProxyFactory _factory
private java.util.WeakHashMap<java.lang.reflect.Method,java.lang.String> _mangleMap
private java.lang.Class<?> _type
private java.net.URL _url
Constructor Detail |
---|
protected HessianProxy(java.net.URL url, HessianProxyFactory factory)
protected HessianProxy(java.net.URL url, HessianProxyFactory factory, java.lang.Class<?> type)
Method Detail |
---|
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 object
java.lang.Throwable
protected 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.IOException
protected void addRequestHeaders(HessianConnection conn)
protected void parseResponseHeaders(java.net.URLConnection conn)
conn
- public java.lang.Object writeReplace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |