@Deprecated public class HessianExporter extends RemoteExporter implements InitializingBean
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.
invoke(java.io.InputStream, java.io.OutputStream)
,
HessianServiceExporter
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TYPE_HESSIAN
Deprecated.
The content type for hessian (
application/x-hessian ). |
logger
Constructor and Description |
---|
HessianExporter()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Deprecated.
Invoked by the containing
BeanFactory after it has set all bean properties
and satisfied BeanFactoryAware , ApplicationContextAware etc. |
protected void |
doInvoke(com.caucho.hessian.server.HessianSkeleton skeleton,
InputStream inputStream,
OutputStream outputStream)
Deprecated.
Actually invoke the skeleton with the given streams.
|
void |
invoke(InputStream inputStream,
OutputStream outputStream)
Deprecated.
Perform an invocation on the exported object.
|
void |
prepare()
Deprecated.
Initialize this exporter.
|
void |
setAllowNonSerializable(boolean allowNonSerializable)
Deprecated.
Set whether to allow non-serializable types as Hessian arguments
and return values.
|
void |
setDebug(boolean debug)
Deprecated.
Set whether Hessian's debug mode should be enabled, logging to
this exporter's Commons Logging log.
|
void |
setRemoteResolver(com.caucho.hessian.io.HessianRemoteResolver remoteResolver)
Deprecated.
Specify a custom HessianRemoteResolver to use for resolving remote
object references.
|
void |
setSendCollectionType(boolean sendCollectionType)
Deprecated.
Set whether to send the Java collection type for each serialized
collection.
|
void |
setSerializerFactory(com.caucho.hessian.io.SerializerFactory serializerFactory)
Deprecated.
Specify the Hessian SerializerFactory to use.
|
checkService, checkServiceInterface, getExporterName, getProxyForService, getService, getServiceInterface, setInterceptors, setRegisterTraceInterceptor, setService, setServiceInterface
getBeanClassLoader, overrideThreadContextClassLoader, resetThreadContextClassLoader, setBeanClassLoader
public static final String CONTENT_TYPE_HESSIAN
application/x-hessian
).public void setSerializerFactory(@Nullable 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 setAllowNonSerializable(boolean allowNonSerializable)
public void setRemoteResolver(com.caucho.hessian.io.HessianRemoteResolver remoteResolver)
public void setDebug(boolean debug)
HessianProxyFactory.setDebug(boolean)
public void afterPropertiesSet()
InitializingBean
BeanFactory
after it has set all bean properties
and satisfied BeanFactoryAware
, ApplicationContextAware
etc.
This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
afterPropertiesSet
in interface InitializingBean
public void prepare()
public void invoke(InputStream inputStream, OutputStream outputStream) throws Throwable
inputStream
- the request streamoutputStream
- the response streamThrowable
- 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 streamThrowable
- if invocation failed