public class HessianSkeleton extends AbstractSkeleton
Modifier and Type | Class and Description |
---|---|
(package private) static class |
HessianSkeleton.LogWriter |
Modifier and Type | Field and Description |
---|---|
private HessianFactory |
_hessianFactory |
private HessianInputFactory |
_inputFactory |
private boolean |
_isDebug |
private java.lang.Object |
_service |
private static java.util.logging.Logger |
log |
Constructor and Description |
---|
HessianSkeleton(java.lang.Class apiClass)
Create a new hessian skeleton.
|
HessianSkeleton(java.lang.Object service,
java.lang.Class apiClass)
Create a new hessian skeleton.
|
Modifier and Type | Method and Description |
---|---|
protected java.io.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(java.io.InputStream is,
java.io.OutputStream os)
Invoke the object with the request from the input stream.
|
void |
invoke(java.io.InputStream is,
java.io.OutputStream os,
SerializerFactory serializerFactory)
Invoke the object with the request from the input stream.
|
void |
invoke(java.lang.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
private static final java.util.logging.Logger log
private boolean _isDebug
private HessianInputFactory _inputFactory
private HessianFactory _hessianFactory
private java.lang.Object _service
public HessianSkeleton(java.lang.Object service, java.lang.Class apiClass)
service
- the underlying service object.apiClass
- the API interfacepublic HessianSkeleton(java.lang.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(java.io.InputStream is, java.io.OutputStream os) throws java.lang.Exception
in
- the Hessian input streamout
- the Hessian output streamjava.lang.Exception
public void invoke(java.io.InputStream is, java.io.OutputStream os, SerializerFactory serializerFactory) throws java.lang.Exception
in
- the Hessian input streamout
- the Hessian output streamjava.lang.Exception
public void invoke(AbstractHessianInput in, AbstractHessianOutput out) throws java.lang.Exception
in
- the Hessian input streamout
- the Hessian output streamjava.lang.Exception
public void invoke(java.lang.Object service, AbstractHessianInput in, AbstractHessianOutput out) throws java.lang.Exception
in
- the Hessian input streamout
- the Hessian output streamjava.lang.Exception
protected boolean isDebugInvoke()
protected java.io.PrintWriter createDebugPrintWriter() throws java.io.IOException
java.io.IOException
Copyright 2003-2013. All Rights Reserved.