spring-framework / org.springframework.remoting.caucho / HessianExporter

HessianExporter

open class HessianExporter : RemoteExporter, InitializingBean

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 4.0, this exporter requires Hessian 4.0 or above.

Author
Juergen Hoeller

Since
2.5.1

See Also
#invoke(java.io.InputStream, java.io.OutputStream)HessianServiceExporterSimpleHessianServiceExporter

Constructors

<init>

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 4.0, this exporter requires Hessian 4.0 or above.

Properties

CONTENT_TYPE_HESSIAN

static val CONTENT_TYPE_HESSIAN: String

Functions

afterPropertiesSet

open fun afterPropertiesSet(): Unit

invoke

open fun invoke(inputStream: InputStream, outputStream: OutputStream): Unit

Perform an invocation on the exported object.

prepare

open fun prepare(): Unit

Initialize this exporter.

setAllowNonSerializable

open fun setAllowNonSerializable(allowNonSerializable: Boolean): Unit

Set whether to allow non-serializable types as Hessian arguments and return values. Default is "true".

setDebug

open fun setDebug(debug: Boolean): Unit

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

setRemoteResolver

open fun setRemoteResolver(remoteResolver: HessianRemoteResolver): Unit

Specify a custom HessianRemoteResolver to use for resolving remote object references.

setSendCollectionType

open fun setSendCollectionType(sendCollectionType: Boolean): Unit

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

setSerializerFactory

open fun setSerializerFactory(serializerFactory: SerializerFactory): Unit

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.

Inheritors

HessianServiceExporter

open class HessianServiceExporter : HessianExporter, HttpRequestHandler

Servlet-API-based HTTP request handler that exports the specified service bean as Hessian service endpoint, accessible via a Hessian proxy.

Note: Spring also provides an alternative version of this exporter, for Sun's JRE 1.6 HTTP server: SimpleHessianServiceExporter.

Hessian is a slim, binary RPC protocol. For information on Hessian, see the Hessian website. Note: As of Spring 4.0, this exporter requires Hessian 4.0 or above.

Hessian services exported with this class can be accessed by any Hessian client, as there isn't any special handling involved.

SimpleHessianServiceExporter

open class SimpleHessianServiceExporter : HessianExporter, HttpHandler

HTTP request handler that exports the specified service bean as Hessian service endpoint, accessible via a Hessian proxy. Designed for Sun's JRE 1.6 HTTP server, implementing the com.sun.net.httpserver.HttpHandler interface.

Hessian is a slim, binary RPC protocol. For information on Hessian, see the Hessian website. Note: As of Spring 4.0, this exporter requires Hessian 4.0 or above.

Hessian services exported with this class can be accessed by any Hessian client, as there isn't any special handling involved.