Module hiveremoting.caucho
Back to master index

[private] Schema hiveremoting.caucho.CauchoProxySchema
This schema is used to declare proxies to Caucho (hessian or burlap) remote services. It is used to define the single parameter to the CauchoProxyFactory service.
Element <proxy>
Defines the remote Caucho service to build a proxy for.
Attribute call-context-handler-on-error Translator: boolean
Determines if the registered RemoteContextHandler shall be called even when an http error is received. Default is false.
Attribute context-handler Translator: object
Enables to set a RemoteContextHandler that will be called before any frame is sent and after any frame is received.
Attribute gzip-in-buffer-size Translator: int,min=512
Determines the memory buffer size (in bytes) that is used in conjunction with GZIP stream (for better performance during unzip).
Attribute gzip-threshold Translator: int,min=-1
Determines the limit of messages size over which sent messages should be compressed with gzip. If -1, then no gzip compression will ever take place. If 0, gzip compression will be done for any message. Note that when >= 0, all caucho messages sent to the server will always accept a gzip-compressed response from the server.
Attribute overload-enabled Translator: boolean
Determines if method name overload is authorized with the remote service (this is an Hessian/Burlap option).
Attribute password Translator: string
For authenticated connections, the password to be passed in the http header (using BASIC authentication).
Attribute protocol (required) Translator: enumeration,net.sourceforge.hiveremoting.caucho.Protocol,Hessian=Hessian,Burlap=Burlap
The Caucho protocol to use to communicate with the remote service, either "Hessian" or "Burlap".
Attribute protocol-version Translator: int,min=1,max=2
The version of protocol to use to communicate with the remote service (valid for Hessian protocol only, unused for Burlap), either 1 or 2. Default is "1" (for compatibility with old servers).
Attribute url (required) (unique) Translator: string
The complete url to the remote Caucho service, in the form "http://server:port/application/path". You can of course use HiveMind symbol substitution to externalize customizable parts (such as server or port).
Attribute user Translator: string
For authenticated connections, the user to be passed in the http header (using BASIC authentication). Since generally, user (and password) will be provided as direct input from the user, this makes it difficult to pass it here as part of the configuration. To see how to do it, have a look at the CauchoProxyFactory javadoc.
Conversion Rules
<conversion class="net.sourceforge.hiveremoting.caucho.CauchoProxyContribution" />
References
Services
hiveremoting.caucho.CauchoProxyFactory

Module hiveremoting.caucho
Back to master index