Return-Path: Delivered-To: apmail-hc-commits-archive@www.apache.org Received: (qmail 35998 invoked from network); 3 Dec 2010 21:15:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Dec 2010 21:15:56 -0000 Received: (qmail 10468 invoked by uid 500); 3 Dec 2010 21:15:56 -0000 Delivered-To: apmail-hc-commits-archive@hc.apache.org Received: (qmail 10424 invoked by uid 500); 3 Dec 2010 21:15:56 -0000 Mailing-List: contact commits-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list commits@hc.apache.org Received: (qmail 10416 invoked by uid 99); 3 Dec 2010 21:15:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Dec 2010 21:15:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Dec 2010 21:15:55 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 354EE2388994; Fri, 3 Dec 2010 21:14:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@hc.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101203211424.354EE2388994@eris.apache.org> 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: + *
    + *
  • gzip - see {@link GzipDecompressingEntity}
  • + *
  • deflate - see {@link DeflateDecompressingEntity}
  • + *
  • identity - no action needed
  • + *
+ * + * @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,