Reputation: 2691
Can someone please give me quick tutorial about how to achieve GZIP using apache cxf in java for restful webservices. i have gone through the documentation of cxf and have used their steps but that doesnt give anything.
Thanks
Upvotes: 0
Views: 1117
Reputation: 2691
I had found this answer long back. Just posting it for future users if any. Below given configuration was required for GZIP:
<cxf:bus id="cxfBus">
<cxf:features>
<bean class="org.apache.cxf.transport.common.gzip.GZIPFeature">
<property name="threshold">
<value>5</value>
</property>
</bean>
</cxf:features>
</cxf:bus>
Upvotes: 2