Class GZIPFeature
java.lang.Object
jakarta.xml.ws.WebServiceFeature
org.apache.cxf.feature.AbstractFeature
org.apache.cxf.feature.DelegatingFeature<GZIPFeature.Portable>
org.apache.cxf.transport.common.gzip.GZIPFeature
- All Implemented Interfaces:
- AbstractPortableFeature,- Feature
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.
 
 <![CDATA[
 <jaxws:endpoint ...>
   <jaxws:features>
     
 Attaching this feature to a client will cause outgoing request messages
 to be compressed and incoming compressed responses to be uncompressed.
 Accept-Encoding header is sent to let the service know
 that your client can accept compressed responses.- 
Nested Class SummaryNested Classes
- 
Field SummaryFields inherited from class org.apache.cxf.feature.DelegatingFeaturedelegateFields inherited from class jakarta.xml.ws.WebServiceFeatureenabled
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleangetForce()intvoidremove(List<Interceptor<? extends Message>> outInterceptors) voidsetForce(boolean b) voidsetThreshold(int threshold) Methods inherited from class org.apache.cxf.feature.DelegatingFeaturegetDelegate, initialize, initialize, initialize, initialize, initializeProvider, setDelegateMethods inherited from class org.apache.cxf.feature.AbstractFeaturedoInitializeProvider, getActive, getID, isEnabled
- 
Constructor Details- 
GZIPFeaturepublic GZIPFeature()
 
- 
- 
Method Details- 
remove
- 
setThresholdpublic void setThreshold(int threshold) 
- 
getThresholdpublic int getThreshold()
- 
setForcepublic void setForce(boolean b) 
- 
getForcepublic boolean getForce()
 
-