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
ConstructorsModifierConstructorDescriptionprotected
HessianProxy
(URL url, HessianProxyFactory factory) Protected constructor for subclassingprotected
HessianProxy
(URL url, HessianProxyFactory factory, Class<?> type) Protected constructor for subclassing -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Method that allows subclasses to add request headers such as cookies.protected InputStream
getURL()
Returns the proxy's URL.Handles the object invocation.protected String
mangleName
(Method method) protected void
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.
-
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:
invoke
in 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
-