Class 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 URLs
      static 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AbstractSkeleton

        protected AbstractSkeleton​(java.lang.Class apiClass)
        Create a new hessian skeleton.
        Parameters:
        apiClass - the API interface
    • 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 mangle
        isFull - 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 class java.lang.Object