Package com.caucho.hessian.server
Class HessianSkeleton
java.lang.Object
com.caucho.services.server.AbstractSkeleton
com.caucho.hessian.server.HessianSkeleton
Proxy class for Hessian services.
-
Constructor Summary
ConstructorsConstructorDescriptionHessianSkeleton
(Class<?> apiClass) Create a new hessian skeleton.HessianSkeleton
(Object service, Class<?> apiClass) Create a new hessian skeleton. -
Method Summary
Modifier and TypeMethodDescriptionprotected PrintWriter
Creates the PrintWriter for debug output.void
Invoke the object with the request from the input stream.void
invoke
(InputStream is, OutputStream os) Invoke the object with the request from the input stream.void
invoke
(InputStream is, OutputStream os, SerializerFactory serializerFactory) Invoke the object with the request from the input stream.void
invoke
(Object service, AbstractHessianInput in, AbstractHessianOutput out) Invoke the object with the request from the input stream.boolean
isDebug()
protected boolean
void
setDebug
(boolean isDebug) void
setHessianFactory
(HessianFactory factory) Methods inherited from class com.caucho.services.server.AbstractSkeleton
getAPIClassName, getHomeClassName, getMethod, getObjectClassName, mangleClass, mangleName, setHomeClass, setObjectClass, toString
-
Constructor Details
-
HessianSkeleton
Create a new hessian skeleton.- Parameters:
service
- the underlying service object.apiClass
- the API interface
-
HessianSkeleton
Create a new hessian skeleton.- Parameters:
service
- the underlying service object.apiClass
- the API interface
-
-
Method Details
-
setDebug
public void setDebug(boolean isDebug) -
isDebug
public boolean isDebug() -
setHessianFactory
-
invoke
Invoke the object with the request from the input stream.- Parameters:
in
- the Hessian input streamout
- the Hessian output stream- Throws:
Exception
-
invoke
public void invoke(InputStream is, OutputStream os, SerializerFactory serializerFactory) throws Exception Invoke the object with the request from the input stream.- Parameters:
in
- the Hessian input streamout
- the Hessian output stream- Throws:
Exception
-
invoke
Invoke the object with the request from the input stream.- Parameters:
in
- the Hessian input streamout
- the Hessian output stream- Throws:
Exception
-
invoke
public void invoke(Object service, AbstractHessianInput in, AbstractHessianOutput out) throws Exception Invoke the object with the request from the input stream.- Parameters:
in
- the Hessian input streamout
- the Hessian output stream- Throws:
Exception
-
isDebugInvoke
protected boolean isDebugInvoke() -
createDebugPrintWriter
Creates the PrintWriter for debug output. The default is to write to java.util.Logging.- Throws:
IOException
-