com.caucho.hessian.server
Class HessianSkeleton

java.lang.Object
  extended bycom.caucho.hessian.server.HessianSkeleton

public class HessianSkeleton
extends java.lang.Object

Proxy class for Hessian services.


Field Summary
private  java.util.HashMap _methodMap
           
private  java.lang.Object _service
           
 
Constructor Summary
HessianSkeleton(java.lang.Object service)
          Create a new hessian skeleton.
 
Method Summary
 void invoke(HessianInput in, HessianOutput out)
          Invoke the object with the request from the input stream.
private  void mangleClass(java.lang.StringBuffer sb, java.lang.Class cl, boolean isFull)
          Mangles a classname.
protected  java.lang.String mangleName(java.lang.reflect.Method method, boolean isFull)
          Creates a unique mangled method name based on the method name and the method parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_methodMap

private java.util.HashMap _methodMap

_service

private java.lang.Object _service
Constructor Detail

HessianSkeleton

public HessianSkeleton(java.lang.Object service)
Create a new hessian skeleton.

Parameters:
service - the underlying service object.
Method Detail

mangleName

protected java.lang.String mangleName(java.lang.reflect.Method method,
                                      boolean isFull)
Creates a unique mangled method name based on the method name and the method parameters.

Parameters:
method - the method to mangle
isFull - if true, mangle the full classname
Returns:
a mangled string.

mangleClass

private void mangleClass(java.lang.StringBuffer sb,
                         java.lang.Class cl,
                         boolean isFull)
Mangles a classname.


invoke

public void invoke(HessianInput in,
                   HessianOutput out)
            throws java.lang.Throwable
Invoke the object with the request from the input stream.

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