hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1597032 - in /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl: conn/CPoolProxy.java execchain/RequestEntityExecHandler.java execchain/ResponseProxyHandler.java
Date Fri, 23 May 2014 08:52:38 GMT
Author: olegk
Date: Fri May 23 08:52:38 2014
New Revision: 1597032

URL: http://svn.apache.org/r1597032
Log:
Cleanups

Removed:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/execchain/RequestEntityExecHandler.java
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/execchain/ResponseProxyHandler.java
Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/CPoolProxy.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/CPoolProxy.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/CPoolProxy.java?rev=1597032&r1=1597031&r2=1597032&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/CPoolProxy.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/CPoolProxy.java
Fri May 23 08:52:38 2014
@@ -230,6 +230,19 @@ class CPoolProxy implements ManagedHttpC
         }
     }
 
+    @Override
+    public String toString() {
+        final StringBuilder sb = new StringBuilder("CPoolProxy{");
+        final ManagedHttpClientConnection conn = getConnection();
+        if (conn != null) {
+            sb.append(conn);
+        } else {
+            sb.append("detached");
+        }
+        sb.append('}');
+        return sb.toString();
+    }
+
     public static HttpClientConnection newProxy(final CPoolEntry poolEntry) {
         return new CPoolProxy(poolEntry);
     }



Mime
View raw message