|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jersey.api.container.filter.GZIPContentEncodingFilter
public final class GZIPContentEncodingFilter
A GZIP content encoding filter.
If the request contains a Content-Encoding header of "gzip" then the request entity (if any) is uncompressed using gzip.
If the request contains a Accept-Encoding header that contains "gzip" then the response entity (if any) is compressed using gzip and a Content-Encoding header of "gzip" is added to the response.
Constructor Summary | |
---|---|
GZIPContentEncodingFilter()
|
Method Summary | |
---|---|
ContainerRequest |
filter(ContainerRequest request)
Filter the request. |
ContainerResponse |
filter(ContainerRequest request,
ContainerResponse response)
Filter the response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GZIPContentEncodingFilter()
Method Detail |
---|
public ContainerRequest filter(ContainerRequest request)
ContainerRequestFilter
An implementation may modify the state of the request or create a new instance.
filter
in interface ContainerRequestFilter
request
- the request.
public ContainerResponse filter(ContainerRequest request, ContainerResponse response)
ContainerResponseFilter
An implementation may modify the state of the response or return a new instance.
filter
in interface ContainerResponseFilter
request
- the request.response
- the response.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |