public class HessianSkeleton extends AbstractSkeleton
Constructor and Description |
---|
HessianSkeleton(Class<?> apiClass)
Create a new hessian skeleton.
|
HessianSkeleton(Object service,
Class<?> apiClass)
Create a new hessian skeleton.
|
Modifier and Type | Method and Description |
---|---|
protected PrintWriter |
createDebugPrintWriter()
Creates the PrintWriter for debug output.
|
void |
invoke(AbstractHessianInput in,
AbstractHessianOutput out)
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 |
isDebugInvoke() |
void |
setDebug(boolean isDebug) |
void |
setHessianFactory(HessianFactory factory) |
getAPIClassName, getHomeClassName, getMethod, getObjectClassName, mangleClass, mangleName, setHomeClass, setObjectClass, toString
public HessianSkeleton(Object service, Class<?> apiClass)
service
- the underlying service object.apiClass
- the API interfacepublic HessianSkeleton(Class<?> apiClass)
service
- the underlying service object.apiClass
- the API interfacepublic void setDebug(boolean isDebug)
public boolean isDebug()
public void setHessianFactory(HessianFactory factory)
public void invoke(InputStream is, OutputStream os) throws Exception
in
- the Hessian input streamout
- the Hessian output streamException
public void invoke(InputStream is, OutputStream os, SerializerFactory serializerFactory) throws Exception
in
- the Hessian input streamout
- the Hessian output streamException
public void invoke(AbstractHessianInput in, AbstractHessianOutput out) throws Exception
in
- the Hessian input streamout
- the Hessian output streamException
public void invoke(Object service, AbstractHessianInput in, AbstractHessianOutput out) throws Exception
in
- the Hessian input streamout
- the Hessian output streamException
protected boolean isDebugInvoke()
protected PrintWriter createDebugPrintWriter() throws IOException
IOException
Copyright © 2023. All rights reserved.