hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From micha...@apache.org
Subject svn commit: r1682650 - /httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/client/config/RequestConfig.java
Date Sat, 30 May 2015 20:11:18 GMT
Author: michaelo
Date: Sat May 30 20:11:17 2015
New Revision: 1682650

URL: http://svn.apache.org/r1682650
Log:
HTTPCLIENT-1654: Deprecate/remove RequestConfig#decompressionEnabled in favor of #contentCompressionEnabled

Modified:
    httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/client/config/RequestConfig.java

Modified: httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/client/config/RequestConfig.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/client/config/RequestConfig.java?rev=1682650&r1=1682649&r2=1682650&view=diff
==============================================================================
--- httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/client/config/RequestConfig.java
(original)
+++ httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/client/config/RequestConfig.java
Sat May 30 20:11:17 2015
@@ -315,7 +315,9 @@ public class RequestConfig implements Cl
      * </p>
      *
      * @since 4.4
+     * @deprecated (4.5) Use {@link #isContentCompressionEnabled()}
      */
+    @Deprecated
     public boolean isDecompressionEnabled() {
         return decompressionEnabled;
     }
@@ -501,6 +503,11 @@ public class RequestConfig implements Cl
             return this;
         }
 
+        /**
+         * @deprecated (4.5) Set {@link #setContentCompressionEnabled(boolean)} to {@code
false} and
+         * add the {@code Accept-Encoding} request header.
+         */
+        @Deprecated
         public Builder setDecompressionEnabled(final boolean decompressionEnabled) {
             this.decompressionEnabled = decompressionEnabled;
             return this;



Mime
View raw message