类 HessianExporter

    • 方法详细资料

      • setSerializerFactory

        public void setSerializerFactory​(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".
        另请参阅:
        HessianProxyFactory.setDebug(boolean)
      • afterPropertiesSet

        public void afterPropertiesSet()
        从接口复制的说明: 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.

        指定者:
        afterPropertiesSet 在接口中 InitializingBean
      • prepare

        public void prepare()
        Initialize this exporter.
      • invoke

        public void invoke​(InputStream inputStream,
                           OutputStream outputStream)
                    throws Throwable
        Perform an invocation on the exported object.
        参数:
        inputStream - the request stream
        outputStream - the response stream
        抛出:
        Throwable - if invocation failed
      • doInvoke

        protected void doInvoke​(com.caucho.hessian.server.HessianSkeleton skeleton,
                                InputStream inputStream,
                                OutputStream outputStream)
                         throws Throwable
        Actually invoke the skeleton with the given streams.
        参数:
        skeleton - the skeleton to invoke
        inputStream - the request stream
        outputStream - the response stream
        抛出:
        Throwable - if invocation failed