You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2014/05/23 10:51:48 UTC

svn commit: r1597031 - /httpcomponents/httpclient/branches/4.3.x/httpclient/src/main/java/org/apache/http/impl/conn/CPoolProxy.java

Author: olegk
Date: Fri May 23 08:51:48 2014
New Revision: 1597031

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

Modified:
    httpcomponents/httpclient/branches/4.3.x/httpclient/src/main/java/org/apache/http/impl/conn/CPoolProxy.java

Modified: httpcomponents/httpclient/branches/4.3.x/httpclient/src/main/java/org/apache/http/impl/conn/CPoolProxy.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/branches/4.3.x/httpclient/src/main/java/org/apache/http/impl/conn/CPoolProxy.java?rev=1597031&r1=1597030&r2=1597031&view=diff
==============================================================================
--- httpcomponents/httpclient/branches/4.3.x/httpclient/src/main/java/org/apache/http/impl/conn/CPoolProxy.java (original)
+++ httpcomponents/httpclient/branches/4.3.x/httpclient/src/main/java/org/apache/http/impl/conn/CPoolProxy.java Fri May 23 08:51:48 2014
@@ -206,6 +206,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);
     }