hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1603744 - in /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client: AbstractResponseHandler.java BasicResponseHandler.java
Date Thu, 19 Jun 2014 07:52:26 GMT
Author: olegk
Date: Thu Jun 19 07:52:25 2014
New Revision: 1603744

URL: http://svn.apache.org/r1603744
Log:
Fixed binary incompatibility with 4.3

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/AbstractResponseHandler.java
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/BasicResponseHandler.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/AbstractResponseHandler.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/AbstractResponseHandler.java?rev=1603744&r1=1603743&r2=1603744&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/AbstractResponseHandler.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/AbstractResponseHandler.java
Thu Jun 19 07:52:25 2014
@@ -59,7 +59,7 @@ public abstract class AbstractResponseHa
      * status code), throws an {@link HttpResponseException}.
      */
     @Override
-    public final T handleResponse(final HttpResponse response)
+    public T handleResponse(final HttpResponse response)
             throws HttpResponseException, IOException {
         final StatusLine statusLine = response.getStatusLine();
         final HttpEntity entity = response.getEntity();

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/BasicResponseHandler.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/BasicResponseHandler.java?rev=1603744&r1=1603743&r2=1603744&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/BasicResponseHandler.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/BasicResponseHandler.java
Thu Jun 19 07:52:25 2014
@@ -30,17 +30,19 @@ package org.apache.http.impl.client;
 import java.io.IOException;
 
 import org.apache.http.HttpEntity;
+import org.apache.http.HttpResponse;
 import org.apache.http.annotation.Immutable;
+import org.apache.http.client.HttpResponseException;
 import org.apache.http.util.EntityUtils;
 
 /**
- * A {@link ResponseHandler} that returns the response body as a String
+ * A {@link org.apache.http.client.ResponseHandler} that returns the response body as a String
  * for successful (2xx) responses. If the response code was >= 300, the response
- * body is consumed and an {@link HttpResponseException} is thrown.
+ * body is consumed and an {@link org.apache.http.client.HttpResponseException} is thrown.
  * <p/>
  * If this is used with
  * {@link org.apache.http.client.HttpClient#execute(
- *  org.apache.http.client.methods.HttpUriRequest, ResponseHandler)},
+ *  org.apache.http.client.methods.HttpUriRequest, org.apache.http.client.ResponseHandler)},
  * HttpClient may handle redirects (3xx responses) internally.
  *
  * @since 4.0
@@ -56,4 +58,10 @@ public class BasicResponseHandler extend
         return EntityUtils.toString(entity);
     }
 
+    @Override
+    public String handleResponse(
+            final HttpResponse response) throws HttpResponseException, IOException {
+        return super.handleResponse(response);
+    }
+
 }



Mime
View raw message