net.sourceforge.hiveremoting.caucho
Class HessianProxy

java.lang.Object
  extended by net.sourceforge.hiveremoting.caucho.AbstractCauchoProxy
      extended by net.sourceforge.hiveremoting.caucho.HessianProxy
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class HessianProxy
extends AbstractCauchoProxy

Dynamic proxy for Caucho Hessian protocol on client side.

Author:
Jean-Francois Poilpret

Field Summary
protected  int _version
           
 
Fields inherited from class net.sourceforge.hiveremoting.caucho.AbstractCauchoProxy
_callContextHandlerOnError, _factory, _gzipInBufferSize, _gzipThreshold, _handler, _httpClient, _logger, _overloadEnabled, _url
 
Constructor Summary
HessianProxy(CauchoProxyContribution contrib, com.caucho.hessian.io.SerializerFactory factory, org.apache.commons.httpclient.HttpConnectionManager cnxManager, org.apache.commons.logging.Log logger)
           
 
Method Summary
protected  void callMethod(java.io.OutputStream os, java.lang.String method, java.lang.Object[] args)
           
protected  java.lang.RuntimeException createException(java.lang.String message)
           
protected  java.lang.RuntimeException createException(java.lang.Throwable cause)
           
protected  java.lang.Object getReturnValue(java.io.InputStream is, java.lang.Class type)
           
 
Methods inherited from class net.sourceforge.hiveremoting.caucho.AbstractCauchoProxy
close, invoke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_version

protected final int _version
Constructor Detail

HessianProxy

public HessianProxy(CauchoProxyContribution contrib,
                    com.caucho.hessian.io.SerializerFactory factory,
                    org.apache.commons.httpclient.HttpConnectionManager cnxManager,
                    org.apache.commons.logging.Log logger)
Method Detail

getReturnValue

protected java.lang.Object getReturnValue(java.io.InputStream is,
                                          java.lang.Class type)
                                   throws java.lang.Throwable
Specified by:
getReturnValue in class AbstractCauchoProxy
Throws:
java.lang.Throwable

callMethod

protected void callMethod(java.io.OutputStream os,
                          java.lang.String method,
                          java.lang.Object[] args)
                   throws java.lang.Throwable
Specified by:
callMethod in class AbstractCauchoProxy
Throws:
java.lang.Throwable

createException

protected java.lang.RuntimeException createException(java.lang.String message)
Specified by:
createException in class AbstractCauchoProxy

createException

protected java.lang.RuntimeException createException(java.lang.Throwable cause)
Specified by:
createException in class AbstractCauchoProxy