Class HessianSkeleton


  • public class HessianSkeleton
    extends AbstractSkeleton
    Proxy class for Hessian services.
    • Constructor Detail

      • HessianSkeleton

        public HessianSkeleton​(Object service,
                               Class<?> apiClass)
        Create a new hessian skeleton.
        Parameters:
        service - the underlying service object.
        apiClass - the API interface
      • HessianSkeleton

        public HessianSkeleton​(Class<?> apiClass)
        Create a new hessian skeleton.
        Parameters:
        service - the underlying service object.
        apiClass - the API interface
    • Method Detail

      • setDebug

        public void setDebug​(boolean isDebug)
      • isDebug

        public boolean isDebug()
      • setHessianFactory

        public void setHessianFactory​(HessianFactory factory)
      • invoke

        public void invoke​(InputStream is,
                           OutputStream os)
                    throws Exception
        Invoke the object with the request from the input stream.
        Parameters:
        in - the Hessian input stream
        out - the Hessian output stream
        Throws:
        Exception
      • isDebugInvoke

        protected boolean isDebugInvoke()
      • createDebugPrintWriter

        protected PrintWriter createDebugPrintWriter()
                                              throws IOException
        Creates the PrintWriter for debug output. The default is to write to java.util.Logging.
        Throws:
        IOException