com.caucho.hessian.server
Class HessianSkeleton

java.lang.Object
  extended by com.caucho.services.server.AbstractSkeleton
      extended by com.caucho.hessian.server.HessianSkeleton

public class HessianSkeleton
extends AbstractSkeleton

Proxy class for Hessian services.


Constructor Summary
HessianSkeleton(java.lang.Class<?> apiClass)
          Create a new hessian skeleton.
HessianSkeleton(java.lang.Object service, java.lang.Class<?> apiClass)
          Create a new hessian skeleton.
 
Method Summary
protected  java.io.PrintWriter createDebugPrintWriter()
          Creates the PrintWriter for debug output.
 void invoke(AbstractHessianInput in, AbstractHessianOutput out)
          Invoke the object with the request from the input stream.
 void invoke(java.io.InputStream is, java.io.OutputStream os)
          Invoke the object with the request from the input stream.
 void invoke(java.io.InputStream is, java.io.OutputStream os, SerializerFactory serializerFactory)
          Invoke the object with the request from the input stream.
 void invoke(java.lang.Object service, AbstractHessianInput in, AbstractHessianOutput out)
          Invoke the object with the request from the input stream.
 boolean isDebug()
           
protected  boolean isDebugInvoke()
           
 void setDebug(boolean isDebug)
           
 void setHessianFactory(HessianFactory factory)
           
 
Methods inherited from class com.caucho.services.server.AbstractSkeleton
getAPIClassName, getHomeClassName, getMethod, getObjectClassName, mangleClass, mangleName, setHomeClass, setObjectClass, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HessianSkeleton

public HessianSkeleton(java.lang.Object service,
                       java.lang.Class<?> apiClass)
Create a new hessian skeleton.

Parameters:
service - the underlying service object.
apiClass - the API interface

HessianSkeleton

public HessianSkeleton(java.lang.Class<?> apiClass)
Create a new hessian skeleton.

Parameters:
service - the underlying service object.
apiClass - the API interface
Method Detail

setDebug

public void setDebug(boolean isDebug)

isDebug

public boolean isDebug()

setHessianFactory

public void setHessianFactory(HessianFactory factory)

invoke

public void invoke(java.io.InputStream is,
                   java.io.OutputStream os)
            throws java.lang.Exception
Invoke the object with the request from the input stream.

Parameters:
in - the Hessian input stream
out - the Hessian output stream
Throws:
java.lang.Exception

invoke

public void invoke(java.io.InputStream is,
                   java.io.OutputStream os,
                   SerializerFactory serializerFactory)
            throws java.lang.Exception
Invoke the object with the request from the input stream.

Parameters:
in - the Hessian input stream
out - the Hessian output stream
Throws:
java.lang.Exception

invoke

public void invoke(AbstractHessianInput in,
                   AbstractHessianOutput out)
            throws java.lang.Exception
Invoke the object with the request from the input stream.

Parameters:
in - the Hessian input stream
out - the Hessian output stream
Throws:
java.lang.Exception

invoke

public void invoke(java.lang.Object service,
                   AbstractHessianInput in,
                   AbstractHessianOutput out)
            throws java.lang.Exception
Invoke the object with the request from the input stream.

Parameters:
in - the Hessian input stream
out - the Hessian output stream
Throws:
java.lang.Exception

isDebugInvoke

protected boolean isDebugInvoke()

createDebugPrintWriter

protected java.io.PrintWriter createDebugPrintWriter()
                                              throws java.io.IOException
Creates the PrintWriter for debug output. The default is to write to java.util.Logging.

Throws:
java.io.IOException