com.caucho.hessian.client

Class HessianProxy

Implemented Interfaces:
InvocationHandler

public class HessianProxy
extends java.lang.Object
implements InvocationHandler

Proxy implementation for Hessian clients. Applications will generally use HessianProxyFactory to create proxy clients.

Field Summary

private HessianProxyFactory
_factory
private URL
_url

Constructor Summary

HessianProxy(HessianProxyFactory factory, URL url)

Method Summary

URL
getURL()
Returns the proxy's URL.
Object
invoke(Object proxy, Method method, Object[] args)
Handles the object invocation.

Field Details

_factory

private HessianProxyFactory _factory

_url

private URL _url

Constructor Details

HessianProxy

(package private)  HessianProxy(HessianProxyFactory factory,
                                URL url)

Method Details

getURL

public URL getURL()
Returns the proxy's URL.

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
            throws Throwable
Handles the object invocation.
Parameters:
proxy - the proxy object to invoke
method - the method to call
args - the arguments to the proxy object