Apache CXF API

org.apache.cxf.transport.common.gzip
Class GZIPFeature

java.lang.Object
  extended by org.apache.cxf.feature.AbstractFeature
      extended by org.apache.cxf.transport.common.gzip.GZIPFeature

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
GZIPFeature()
           
 
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

GZIPFeature

public GZIPFeature()
Method Detail

initializeProvider

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

setThreshold

public void setThreshold(int threshold)

getThreshold

public int getThreshold()

Apache CXF API

Apache CXF