Package com.caucho.hessian.client
Class HessianProxy
java.lang.Object
com.caucho.hessian.client.HessianProxy
- All Implemented Interfaces:
Serializable,InvocationHandler
Proxy implementation for Hessian clients. Applications will generally
use HessianProxyFactory to create proxy clients.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHessianProxy(URL url, HessianProxyFactory factory) Protected constructor for subclassingprotectedHessianProxy(URL url, HessianProxyFactory factory, Class<?> type) Protected constructor for subclassing -
Method Summary
Modifier and TypeMethodDescriptionprotected voidMethod that allows subclasses to add request headers such as cookies.protected InputStreamgetURL()Returns the proxy's URL.Handles the object invocation.protected StringmangleName(Method method) protected voidMethod that allows subclasses to parse response headers such as cookies.protected HessianConnectionsendRequest(String methodName, Object[] args) Sends the HTTP request to the Hessian connection.
-
Field Details
-
_factory
-
-
Constructor Details
-
HessianProxy
Protected constructor for subclassing -
HessianProxy
Protected constructor for subclassing
-
-
Method Details
-
getURL
Returns the proxy's URL. -
invoke
Handles the object invocation.- Specified by:
invokein interfaceInvocationHandler- Parameters:
proxy- the proxy object to invokemethod- the method to callargs- the arguments to the proxy object- Throws:
Throwable
-
getInputStream
- Throws:
IOException
-
mangleName
-
sendRequest
Sends the HTTP request to the Hessian connection.- Throws:
IOException
-
addRequestHeaders
Method that allows subclasses to add request headers such as cookies. Default implementation is empty. -
parseResponseHeaders
Method that allows subclasses to parse response headers such as cookies. Default implementation is empty.- Parameters:
conn-
-
writeReplace
-