org.springframework.remoting.caucho

Class HessianExporter

    • Field Detail

      • CONTENT_TYPE_HESSIAN

        public static final java.lang.String CONTENT_TYPE_HESSIAN
        The content type for hessian (application/x-hessian).
        See Also:
        Constant Field Values
    • Constructor Detail

      • HessianExporter

        public HessianExporter()
    • Method Detail

      • setSerializerFactory

        public void setSerializerFactory(@Nullable
                                         com.caucho.hessian.io.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.

      • setSendCollectionType

        public void setSendCollectionType(boolean sendCollectionType)
        Set whether to send the Java collection type for each serialized collection. Default is "true".
      • setAllowNonSerializable

        public void setAllowNonSerializable(boolean allowNonSerializable)
        Set whether to allow non-serializable types as Hessian arguments and return values. Default is "true".
      • setRemoteResolver

        public void setRemoteResolver(com.caucho.hessian.io.HessianRemoteResolver remoteResolver)
        Specify a custom HessianRemoteResolver to use for resolving remote object references.
      • setDebug

        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:
        HessianProxyFactory.setDebug(boolean)
      • afterPropertiesSet

        public void afterPropertiesSet()
        Description copied from interface: InitializingBean
        Invoked by the containing 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.

        Specified by:
        afterPropertiesSet in interface InitializingBean
      • prepare

        public void prepare()
        Initialize this exporter.
      • invoke

        public void invoke(java.io.InputStream inputStream,
                           java.io.OutputStream outputStream)
                    throws java.lang.Throwable
        Perform an invocation on the exported object.
        Parameters:
        inputStream - the request stream
        outputStream - the response stream
        Throws:
        java.lang.Throwable - if invocation failed
      • doInvoke

        protected void doInvoke(com.caucho.hessian.server.HessianSkeleton skeleton,
                                java.io.InputStream inputStream,
                                java.io.OutputStream outputStream)
                         throws java.lang.Throwable
        Actually invoke the skeleton with the given streams.
        Parameters:
        skeleton - the skeleton to invoke
        inputStream - the request stream
        outputStream - the response stream
        Throws:
        java.lang.Throwable - if invocation failed