Package com.caucho.services.server
Class AbstractSkeleton
- java.lang.Object
-
- com.caucho.services.server.AbstractSkeleton
-
- Direct Known Subclasses:
BurlapSkeleton,HessianSkeleton
public abstract class AbstractSkeleton extends java.lang.ObjectProxy class for Hessian services.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSkeleton(java.lang.Class apiClass)Create a new hessian skeleton.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAPIClassName()Returns the API class of the current object.java.lang.StringgetHomeClassName()Returns the API class of the factory/home.protected java.lang.reflect.MethodgetMethod(java.lang.String mangledName)Returns the method by the mangled name.java.lang.StringgetObjectClassName()Returns the API class of the object URLsstatic java.lang.StringmangleClass(java.lang.Class cl, boolean isFull)Mangles a classname.static java.lang.StringmangleName(java.lang.reflect.Method method, boolean isFull)Creates a unique mangled method name based on the method name and the method parameters.voidsetHomeClass(java.lang.Class homeAPI)Sets the home API class.voidsetObjectClass(java.lang.Class objectAPI)Sets the object API class.java.lang.StringtoString()
-
-
-
Method Detail
-
getAPIClassName
public java.lang.String getAPIClassName()
Returns the API class of the current object.
-
getHomeClassName
public java.lang.String getHomeClassName()
Returns the API class of the factory/home.
-
setHomeClass
public void setHomeClass(java.lang.Class homeAPI)
Sets the home API class.
-
getObjectClassName
public java.lang.String getObjectClassName()
Returns the API class of the object URLs
-
setObjectClass
public void setObjectClass(java.lang.Class objectAPI)
Sets the object API class.
-
getMethod
protected java.lang.reflect.Method getMethod(java.lang.String mangledName)
Returns the method by the mangled name.- Parameters:
mangledName- the name passed by the protocol
-
mangleName
public static 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 mangleisFull- if true, mangle the full classname- Returns:
- a mangled string.
-
mangleClass
public static java.lang.String mangleClass(java.lang.Class cl, boolean isFull)Mangles a classname.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-