You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Simon Fell (JIRA)" <ax...@ws.apache.org> on 2005/07/28 07:48:22 UTC

[jira] Updated: (AXIS-2136) support request & response gzip compression on HTTP transport

     [ http://issues.apache.org/jira/browse/AXIS-2136?page=all ]

Simon Fell updated AXIS-2136:
-----------------------------

    Attachment: gzip.diff.zip

Here's a patch to enable gzip for CommonsHTTPSender.
Am still working on the equivilent changes to HTTPSender. (which seems to be significantly messier)

by default all requests will indicate that they support a compressed response, this can be turned off by setting the MessageContext.HTTP_NO_ACCEPT_GZIP messageContext property to Boolean.TRUE.
You can also ask for the request to be gziped by setting the MessageContext.HTTP_GZIP_REQUEST messageContext property to Boolean.TRUE.

The easiest way to set this properties is to subclass the generated serviceLocator class and override createCall() to set the additional properties you want. e.g. 

public class myLocator extends SforceServiceLocator {
	public Call createCall() throws ServiceException {
		Call call = super.createCall();
		call.setProperty(MessageContext.HTTP_NO_ACCEPT_GZIP, Boolean.TRUE);
		call.setProperty(MessageContext.HTTP_GZIP_REQUEST, Boolean.TRUE);
		return call;
	}
}

> support request & response gzip compression on HTTP transport
> -------------------------------------------------------------
>
>          Key: AXIS-2136
>          URL: http://issues.apache.org/jira/browse/AXIS-2136
>      Project: Apache Axis
>         Type: New Feature
>   Components: Basic Architecture
>     Versions: 1.2.1
>     Reporter: Simon Fell
>     Priority: Minor
>  Attachments: gzip.diff.zip
>
> provide support for handling gziped compressed requests & responses in the http client.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira