|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jersey.api.client.filter.ClientFilter
com.sun.jersey.api.client.filter.GZIPContentEncodingFilter
public class GZIPContentEncodingFilter
A GZIP content encoding filter.
The request will be modified to set the Accept-Encoding header to "gzip" if that header has not already been set by the client.
If the request contains an entity and a Content-Encoding header of "gzip" then the entity will be compressed using gzip. If configured, and there does not exist a Content-Encoding header of "gzip" then such a header is added to the request and the entity will be compressed using gzip.
If the response has a Content-Encoding header of "gzip" then then the response entity will be uncompressed using gzip.
| Constructor Summary | |
|---|---|
GZIPContentEncodingFilter()
Create a GZIP Content-Encoding filter that compresses the request entity. |
|
GZIPContentEncodingFilter(boolean compressRequestEntity)
Create a GZIP Content-Encoding filter. |
|
| Method Summary | |
|---|---|
ClientResponse |
handle(ClientRequest request)
Handle a HTTP request as a ClientRequest and return the HTTP
response as a ClientResponse. |
| Methods inherited from class com.sun.jersey.api.client.filter.ClientFilter |
|---|
getNext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GZIPContentEncodingFilter()
public GZIPContentEncodingFilter(boolean compressRequestEntity)
compressRequestEntity - if true the request entity (if any)
is always compressed, otherwise the request entity is compressed
only if there exists a Content-Encoding header whose
value is "gzip".| Method Detail |
|---|
public ClientResponse handle(ClientRequest request)
throws ClientHandlerException
ClientHandlerClientRequest and return the HTTP
response as a ClientResponse.
handle in interface ClientHandlerhandle in class ClientFilterrequest - the HTTP request.
ClientHandlerException - if the client
handler fails to process the request or response.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||