com.caucho.hessian.client
Class HessianProxy

java.lang.Object
  extended bycom.caucho.hessian.client.HessianProxy
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class HessianProxy
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

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


Field Summary
private  HessianProxyFactory _factory
           
private  java.net.URL _url
           
 
Constructor Summary
(package private) HessianProxy(HessianProxyFactory factory, java.net.URL url)
           
 
Method Summary
 java.net.URL getURL()
          Returns the proxy's URL.
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          Handles the object invocation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_factory

private HessianProxyFactory _factory

_url

private java.net.URL _url
Constructor Detail

HessianProxy

HessianProxy(HessianProxyFactory factory,
             java.net.URL url)
Method Detail

getURL

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


invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Handles the object invocation.

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Parameters:
proxy - the proxy object to invoke
method - the method to call
args - the arguments to the proxy object
Throws:
java.lang.Throwable