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 Object
Proxy class for Hessian services.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSkeleton(Class apiClass)Create a new hessian skeleton.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAPIClassName()Returns the API class of the current object.StringgetHomeClassName()Returns the API class of the factory/home.protected MethodgetMethod(String mangledName)Returns the method by the mangled name.StringgetObjectClassName()Returns the API class of the object URLsstatic StringmangleClass(Class cl, boolean isFull)Mangles a classname.static StringmangleName(Method method, boolean isFull)Creates a unique mangled method name based on the method name and the method parameters.voidsetHomeClass(Class homeAPI)Sets the home API class.voidsetObjectClass(Class objectAPI)Sets the object API class.StringtoString()
-
-
-
Constructor Detail
-
AbstractSkeleton
protected AbstractSkeleton(Class apiClass)
Create a new hessian skeleton.- Parameters:
apiClass- the API interface
-
-
Method Detail
-
getAPIClassName
public String getAPIClassName()
Returns the API class of the current object.
-
getHomeClassName
public String getHomeClassName()
Returns the API class of the factory/home.
-
setHomeClass
public void setHomeClass(Class homeAPI)
Sets the home API class.
-
getObjectClassName
public String getObjectClassName()
Returns the API class of the object URLs
-
setObjectClass
public void setObjectClass(Class objectAPI)
Sets the object API class.
-
getMethod
protected Method getMethod(String mangledName)
Returns the method by the mangled name.- Parameters:
mangledName- the name passed by the protocol
-
mangleName
public static String mangleName(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.
-
-