|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.remoting.support.RemotingSupport org.springframework.remoting.support.RemoteExporter org.springframework.remoting.caucho.HessianExporter
public class HessianExporter
General stream-based protocol exporter for a Hessian endpoint.
Hessian is a slim, binary RPC protocol. For information on Hessian, see the Hessian website. Note: As of Spring 3.0, this exporter requires Hessian 3.2 or above.
invoke(java.io.InputStream, java.io.OutputStream)
,
HessianServiceExporter
,
SimpleHessianServiceExporter
Field Summary | |
---|---|
static String |
CONTENT_TYPE_HESSIAN
|
Fields inherited from class org.springframework.remoting.support.RemotingSupport |
---|
logger |
Constructor Summary | |
---|---|
HessianExporter()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware). |
protected void |
doInvoke(com.caucho.hessian.server.HessianSkeleton skeleton,
InputStream inputStream,
OutputStream outputStream)
Actually invoke the skeleton with the given streams. |
void |
invoke(InputStream inputStream,
OutputStream outputStream)
Perform an invocation on the exported object. |
void |
prepare()
Initialize this exporter. |
void |
setDebug(boolean debug)
Set whether Hessian's debug mode should be enabled, logging to this exporter's Commons Logging log. |
void |
setSendCollectionType(boolean sendCollectionType)
Set whether to send the Java collection type for each serialized collection. |
void |
setSerializerFactory(com.caucho.hessian.io.SerializerFactory serializerFactory)
Specify the Hessian SerializerFactory to use. |
Methods inherited from class org.springframework.remoting.support.RemoteExporter |
---|
checkService, checkServiceInterface, getExporterName, getProxyForService, getService, getServiceInterface, setInterceptors, setRegisterTraceInterceptor, setService, setServiceInterface |
Methods inherited from class org.springframework.remoting.support.RemotingSupport |
---|
getBeanClassLoader, overrideThreadContextClassLoader, resetThreadContextClassLoader, setBeanClassLoader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONTENT_TYPE_HESSIAN
Constructor Detail |
---|
public HessianExporter()
Method Detail |
---|
public void setSerializerFactory(com.caucho.hessian.io.SerializerFactory serializerFactory)
This will typically be passed in as an inner bean definition
of type com.caucho.hessian.io.SerializerFactory
,
with custom bean property values applied.
public void setSendCollectionType(boolean sendCollectionType)
public void setDebug(boolean debug)
HessianProxyFactory.setDebug(boolean)
public void afterPropertiesSet()
InitializingBean
This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.
afterPropertiesSet
in interface InitializingBean
public void prepare()
public void invoke(InputStream inputStream, OutputStream outputStream) throws Throwable
inputStream
- the request streamoutputStream
- the response stream
Throwable
- if invocation failedprotected void doInvoke(com.caucho.hessian.server.HessianSkeleton skeleton, InputStream inputStream, OutputStream outputStream) throws Throwable
skeleton
- the skeleton to invokeinputStream
- the request streamoutputStream
- the response stream
Throwable
- if invocation failed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |