Class HessianExporter

    • Field Detail


        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
        Specify the Hessian SerializerFactory to use.

        This will typically be passed in as an inner bean definition of type, 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( 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:
      • 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( inputStream,
                    throws java.lang.Throwable
        Perform an invocation on the exported object.
        inputStream - the request stream
        outputStream - the response stream
        java.lang.Throwable - if invocation failed
      • doInvoke

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