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.Object
Proxy class for Hessian services.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSkeleton(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.String
getAPIClassName()
Returns the API class of the current object.java.lang.String
getHomeClassName()
Returns the API class of the factory/home.protected java.lang.reflect.Method
getMethod(java.lang.String mangledName)
Returns the method by the mangled name.java.lang.String
getObjectClassName()
Returns the API class of the object URLsstatic java.lang.String
mangleClass(java.lang.Class cl, boolean isFull)
Mangles a classname.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.void
setHomeClass(java.lang.Class homeAPI)
Sets the home API class.void
setObjectClass(java.lang.Class objectAPI)
Sets the object API class.java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-