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

HessianClientInterceptor

open class HessianClientInterceptor : UrlBasedRemoteAccessor, MethodInterceptor

org.aopalliance.intercept.MethodInterceptor for accessing a Hessian service. Supports authentication via username and password. The service URL must be an HTTP URL exposing a Hessian service.

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

Note: There is no requirement for services accessed with this proxy factory to have been exported using Spring's HessianServiceExporter, as there is no special handling involved. As a consequence, you can also access services that have been exported using Caucho's com.caucho.hessian.server.HessianServlet.

Author
Juergen Hoeller

Since
29.09.2003

See Also
#setServiceInterface#setServiceUrl#setUsername#setPasswordHessianServiceExporterHessianProxyFactoryBeancom.caucho.hessian.client.HessianProxyFactorycom.caucho.hessian.server.HessianServlet

Constructors

<init>

HessianClientInterceptor()

org.aopalliance.intercept.MethodInterceptor for accessing a Hessian service. Supports authentication via username and password. The service URL must be an HTTP URL exposing a Hessian service.

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

Note: There is no requirement for services accessed with this proxy factory to have been exported using Spring's HessianServiceExporter, as there is no special handling involved. As a consequence, you can also access services that have been exported using Caucho's com.caucho.hessian.server.HessianServlet.

Functions

afterPropertiesSet

open fun afterPropertiesSet(): Unit

invoke

open fun invoke(invocation: MethodInvocation): Any

prepare

open fun prepare(): Unit

Initialize the Hessian proxy for this interceptor.

setAllowNonSerializable

open fun setAllowNonSerializable(allowNonSerializable: Boolean): Unit

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

setChunkedPost

open fun setChunkedPost(chunkedPost: Boolean): Unit

Set whether to use a chunked post for sending a Hessian request.

setConnectTimeout

open fun setConnectTimeout(timeout: Long): Unit

Set the socket connect timeout to use for the Hessian client.

setConnectionFactory

open fun setConnectionFactory(connectionFactory: HessianConnectionFactory): Unit

Specify a custom HessianConnectionFactory to use for the Hessian client.

setDebug

open fun setDebug(debug: Boolean): Unit

Set whether Hessian's debug mode should be enabled. Default is "false".

setHessian2

open fun setHessian2(hessian2: Boolean): Unit

Set whether version 2 of the Hessian protocol should be used for parsing requests and replies. Default is "false".

setHessian2Reply

open fun setHessian2Reply(hessian2: Boolean): Unit

Set whether version 2 of the Hessian protocol should be used for parsing replies. Default is "false".

setHessian2Request

open fun setHessian2Request(hessian2: Boolean): Unit

Set whether version 2 of the Hessian protocol should be used for parsing requests. Default is "false".

setOverloadEnabled

open fun setOverloadEnabled(overloadEnabled: Boolean): Unit

Set whether overloaded methods should be enabled for remote invocations. Default is "false".

setPassword

open fun setPassword(password: String): Unit

Set the password that this factory should use to access the remote service. Default is none.

The password will be sent by Hessian via HTTP Basic Authentication.

setProxyFactory

open fun setProxyFactory(proxyFactory: HessianProxyFactory): Unit

Set the HessianProxyFactory instance to use. If not specified, a default HessianProxyFactory will be created.

Allows to use an externally configured factory instance, in particular a custom HessianProxyFactory subclass.

setReadTimeout

open fun setReadTimeout(timeout: Long): Unit

Set the timeout to use when waiting for a reply from the Hessian service.

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.

setUsername

open fun setUsername(username: String): Unit

Set the username that this factory should use to access the remote service. Default is none.

The username will be sent by Hessian via HTTP Basic Authentication.

Inheritors

HessianProxyFactoryBean

open class HessianProxyFactoryBean : HessianClientInterceptor, FactoryBean<Any>

FactoryBean for Hessian proxies. Exposes the proxied service for use as a bean reference, using the specified service interface.

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

The service URL must be an HTTP URL exposing a Hessian service. For details, see the HessianClientInterceptor javadoc.