|
||||||||||
| 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.
| Field Summary | |
|---|---|
protected HessianProxyFactory |
_factory
|
| 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 |
|---|
protected HessianProxyFactory _factory
| 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.InvocationHandlerproxy - the proxy object to invokemethod - the method to callargs - the arguments to the proxy object
java.lang.Throwableprotected 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||