Apache CXF API

Class GZIPFeature

  extended by org.apache.cxf.feature.AbstractFeature
      extended by org.apache.cxf.transport.common.gzip.GZIPFeature
All Implemented Interfaces:

public class GZIPFeature
extends AbstractFeature

This class is used to control GZIP compression of messages. Attaching this feature to an endpoint will allow the endpoint to handle compressed requests, and will cause outgoing responses to be compressed if the client indicates (via the Accept-Encoding header) that it can handle them.

Attaching this feature to a client will cause outgoing request messages to be compressed and incoming compressed responses to be uncompressed. If you want the service to know that your client can accept compressed responses, you will also need to set the "AcceptEncoding" value in the relevant HTTP conduit client configuration.

Constructor Summary
Method Summary
 int getThreshold()
protected  void initializeProvider(InterceptorProvider provider, Bus bus)
 void setThreshold(int threshold)
Methods inherited from class org.apache.cxf.feature.AbstractFeature
getActive, initialize, initialize, initialize, initialize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public GZIPFeature()
Method Detail


protected void initializeProvider(InterceptorProvider provider,
                                  Bus bus)
initializeProvider in class AbstractFeature


public void setThreshold(int threshold)


public int getThreshold()

Apache CXF API

Apache CXF