hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1042005 - in /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/protocol: RequestAcceptEncoding.java ResponseContentEncoding.java
Date Fri, 03 Dec 2010 21:14:24 GMT
Author: sebb
Date: Fri Dec  3 21:14:23 2010
New Revision: 1042005

URL: http://svn.apache.org/viewvc?rev=1042005&view=rev
Log:
Javadoc

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/protocol/RequestAcceptEncoding.java
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/protocol/ResponseContentEncoding.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/protocol/RequestAcceptEncoding.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/protocol/RequestAcceptEncoding.java?rev=1042005&r1=1042004&r2=1042005&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/protocol/RequestAcceptEncoding.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/protocol/RequestAcceptEncoding.java
Fri Dec  3 21:14:23 2010
@@ -45,7 +45,7 @@ import org.apache.http.protocol.HttpCont
 public class RequestAcceptEncoding implements HttpRequestInterceptor {
 
     /**
-     * {@inheritDoc}
+     * Adds the header {@code "Accept-Encoding: gzip,deflate"} to the request.
      */
     public void process(
             final HttpRequest request,

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/protocol/ResponseContentEncoding.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/protocol/ResponseContentEncoding.java?rev=1042005&r1=1042004&r2=1042005&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/protocol/ResponseContentEncoding.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/protocol/ResponseContentEncoding.java
Fri Dec  3 21:14:23 2010
@@ -52,7 +52,18 @@ import org.apache.http.protocol.HttpCont
 public class ResponseContentEncoding implements HttpResponseInterceptor {
 
     /**
-     * {@inheritDoc}
+     * Handles the following {@code Content-Encoding}s by 
+     * using the appropriate decompressor to wrap the response Entity:
+     * <ul>
+     * <li>gzip - see {@link GzipDecompressingEntity}</li>
+     * <li>deflate - see {@link DeflateDecompressingEntity}</li>
+     * <li>identity - no action needed</li>
+     * </ul>
+     * 
+     * @param response the response which contains the entity
+     * @param  context not currently used
+     * 
+     * @throws HttpException if the {@code Content-Encoding} is none of the above
      */
     public void process(
             final HttpResponse response,



Mime
View raw message