|
||||||||||
| 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(URL url,
HessianProxyFactory factory)
Protected constructor for subclassing |
protected |
HessianProxy(URL url,
HessianProxyFactory factory,
Class<?> type)
Protected constructor for subclassing |
| Method Summary | |
|---|---|
protected void |
addRequestHeaders(HessianConnection conn)
Method that allows subclasses to add request headers such as cookies. |
protected InputStream |
getInputStream(HessianConnection conn)
|
URL |
getURL()
Returns the proxy's URL. |
Object |
invoke(Object proxy,
Method method,
Object[] args)
Handles the object invocation. |
protected String |
mangleName(Method method)
|
protected void |
parseResponseHeaders(URLConnection conn)
Method that allows subclasses to parse response headers such as cookies. |
protected HessianConnection |
sendRequest(String methodName,
Object[] args)
Sends the HTTP request to the Hessian connection. |
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(URL url,
HessianProxyFactory factory)
protected HessianProxy(URL url,
HessianProxyFactory factory,
Class<?> type)
| Method Detail |
|---|
public URL getURL()
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
invoke in interface InvocationHandlerproxy - the proxy object to invokemethod - the method to callargs - the arguments to the proxy object
Throwable
protected InputStream getInputStream(HessianConnection conn)
throws IOException
IOExceptionprotected String mangleName(Method method)
protected HessianConnection sendRequest(String methodName,
Object[] args)
throws IOException
IOExceptionprotected void addRequestHeaders(HessianConnection conn)
protected void parseResponseHeaders(URLConnection conn)
conn - public Object writeReplace()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||