类 HessianClientInterceptor

    • 方法详细资料

      • setProxyFactory

        public void setProxyFactory​(@Nullable
                                    com.caucho.hessian.client.HessianProxyFactory proxyFactory)
        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.

      • 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".
      • setOverloadEnabled

        public void setOverloadEnabled​(boolean overloadEnabled)
        Set whether overloaded methods should be enabled for remote invocations. Default is "false".
        另请参阅:
        HessianProxyFactory.setOverloadEnabled(boolean)
      • setUsername

        public void setUsername​(String username)
        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.

        另请参阅:
        HessianProxyFactory.setUser(java.lang.String)
      • setPassword

        public void setPassword​(String password)
        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.

        另请参阅:
        HessianProxyFactory.setPassword(java.lang.String)
      • setDebug

        public void setDebug​(boolean debug)
        Set whether Hessian's debug mode should be enabled. Default is "false".
        另请参阅:
        HessianProxyFactory.setDebug(boolean)
      • setChunkedPost

        public void setChunkedPost​(boolean chunkedPost)
        Set whether to use a chunked post for sending a Hessian request.
        另请参阅:
        HessianProxyFactory.setChunkedPost(boolean)
      • setConnectionFactory

        public void setConnectionFactory​(com.caucho.hessian.client.HessianConnectionFactory connectionFactory)
        Specify a custom HessianConnectionFactory to use for the Hessian client.
      • setConnectTimeout

        public void setConnectTimeout​(long timeout)
        Set the socket connect timeout to use for the Hessian client.
        另请参阅:
        HessianProxyFactory.setConnectTimeout(long)
      • setReadTimeout

        public void setReadTimeout​(long timeout)
        Set the timeout to use when waiting for a reply from the Hessian service.
        另请参阅:
        HessianProxyFactory.setReadTimeout(long)
      • setHessian2

        public void setHessian2​(boolean hessian2)
        Set whether version 2 of the Hessian protocol should be used for parsing requests and replies. Default is "false".
        另请参阅:
        HessianProxyFactory.setHessian2Request(boolean)
      • setHessian2Request

        public void setHessian2Request​(boolean hessian2)
        Set whether version 2 of the Hessian protocol should be used for parsing requests. Default is "false".
        另请参阅:
        HessianProxyFactory.setHessian2Request(boolean)
      • setHessian2Reply

        public void setHessian2Reply​(boolean hessian2)
        Set whether version 2 of the Hessian protocol should be used for parsing replies. Default is "false".
        另请参阅:
        HessianProxyFactory.setHessian2Reply(boolean)
      • createHessianProxy

        protected Object createHessianProxy​(com.caucho.hessian.client.HessianProxyFactory proxyFactory)
                                     throws MalformedURLException
        Create the Hessian proxy that is wrapped by this interceptor.
        参数:
        proxyFactory - the proxy factory to use
        返回:
        the Hessian proxy
        抛出:
        MalformedURLException - if thrown by the proxy factory
        另请参阅:
        HessianProxyFactory.create(java.lang.String)