public class

HessianExporter

extends RemoteExporter
implements InitializingBean
java.lang.Object
   ↳ org.springframework.remoting.support.RemotingSupport
     ↳ org.springframework.remoting.support.RemoteExporter
       ↳ org.springframework.remoting.caucho.HessianExporter
Known Direct Subclasses

Class Overview

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.

Summary

Constants
String CONTENT_TYPE_HESSIAN
[Expand]
Inherited Fields
From class org.springframework.remoting.support.RemotingSupport
Public Constructors
HessianExporter()
Public Methods
void afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
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(SerializerFactory serializerFactory)
Specify the Hessian SerializerFactory to use.
Protected Methods
void doInvoke(HessianSkeleton skeleton, InputStream inputStream, OutputStream outputStream)
Actually invoke the skeleton with the given streams.
[Expand]
Inherited Methods
From class org.springframework.remoting.support.RemoteExporter
From class org.springframework.remoting.support.RemotingSupport
From class java.lang.Object
From interface org.springframework.beans.factory.BeanClassLoaderAware
From interface org.springframework.beans.factory.InitializingBean

Constants

public static final String CONTENT_TYPE_HESSIAN

Constant Value: "application/x-hessian"

Public Constructors

public HessianExporter ()

Public Methods

public void afterPropertiesSet ()

Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).

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.

public void invoke (InputStream inputStream, OutputStream outputStream)

Perform an invocation on the exported object.

Parameters
inputStream the request stream
outputStream the response stream
Throws
Throwable if invocation failed

public void prepare ()

Initialize this exporter.

public void setDebug (boolean debug)

Set whether Hessian's debug mode should be enabled, logging to this exporter's Commons Logging log. Default is "false".

See Also
  • com.caucho.hessian.client.HessianProxyFactory#setDebug

public void setSendCollectionType (boolean sendCollectionType)

Set whether to send the Java collection type for each serialized collection. Default is "true".

public void setSerializerFactory (SerializerFactory serializerFactory)

Specify the Hessian SerializerFactory to use.

This will typically be passed in as an inner bean definition of type com.caucho.hessian.io.SerializerFactory, with custom bean property values applied.

Protected Methods

protected void doInvoke (HessianSkeleton skeleton, InputStream inputStream, OutputStream outputStream)

Actually invoke the skeleton with the given streams.

Parameters
skeleton the skeleton to invoke
inputStream the request stream
outputStream the response stream
Throws
Throwable if invocation failed