com.caucho.burlap.server
Class BurlapSkeleton

java.lang.Object
  extended bycom.caucho.burlap.server.BurlapSkeleton

public class BurlapSkeleton
extends java.lang.Object

Proxy class for Burlap services.


Field Summary
private  java.util.HashMap _methodMap
           
private  java.lang.Object _service
           
 
Constructor Summary
BurlapSkeleton(java.lang.Object service)
          Create a new burlap skeleton.
 
Method Summary
 void getBurlapAttribute(BurlapInput in, BurlapOutput out)
          Returns special attributes.
 void invoke(BurlapInput in, BurlapOutput 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

BurlapSkeleton

public BurlapSkeleton(java.lang.Object service)
Create a new burlap 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(BurlapInput in,
                   BurlapOutput out)
            throws java.lang.Throwable
Invoke the object with the request from the input stream.

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

getBurlapAttribute

public void getBurlapAttribute(BurlapInput in,
                               BurlapOutput out)
                        throws java.io.IOException
Returns special attributes.

Parameters:
in - the Burlap input stream
out - the Burlap output stream
Throws:
java.io.IOException