Community
Participate
Working Groups
The task involves adding a system property "riena.communication.zip" which can be set to "true" or "false" or left out. If set to the "true" on the calling client, the hessian request is zipped using GZIPOutputStream. The Server is not configured but detects in the datastream whether the call is zipped and acts accordingly. If the call is zipped, the reply will also be zipped by the server. The client in turn checks if the reply from the server is zipped if so it unzips it before deserializing. Checking whether a datastream is done in a two step process. First the HTTP Header "Content-Encoding" "gzip" is set (in request and reply). Second the first two bytes are checked for a GZIP MAGIC. A fixed value prepending any GZIP packed datastream.
The default is zipped="false". The same built version of Riena needs to be used on client and server in order for zipping to work.
fixed for Riena 2.1. (NOT in Helios version 2.0)