public class HessianProxy extends Object implements InvocationHandler, Serializable
Modifier and Type | Field and Description |
---|---|
protected HessianProxyFactory |
_factory |
Modifier | Constructor and Description |
---|---|
protected |
HessianProxy(URL url,
HessianProxyFactory factory)
Protected constructor for subclassing
|
protected |
HessianProxy(URL url,
HessianProxyFactory factory,
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 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() |
protected HessianProxyFactory _factory
protected HessianProxy(URL url, HessianProxyFactory factory)
protected HessianProxy(URL url, HessianProxyFactory factory, Class<?> type)
public URL getURL()
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
proxy
- the proxy object to invokemethod
- the method to callargs
- the arguments to the proxy objectThrowable
protected InputStream getInputStream(HessianConnection conn) throws IOException
IOException
protected HessianConnection sendRequest(String methodName, Object[] args) throws IOException
IOException
protected void addRequestHeaders(HessianConnection conn)
protected void parseResponseHeaders(URLConnection conn)
conn
- public Object writeReplace()
Copyright © 2023. All rights reserved.