You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2017/05/09 22:05:41 UTC

svn commit: r1794645 - /httpcomponents/httpcore/branches/4.4.x/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/ListenerEndpointImpl.java

Author: ggregory
Date: Tue May  9 22:05:41 2017
New Revision: 1794645

URL: http://svn.apache.org/viewvc?rev=1794645&view=rev
Log:
Add toString() for debugging and logging.

Modified:
    httpcomponents/httpcore/branches/4.4.x/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/ListenerEndpointImpl.java

Modified: httpcomponents/httpcore/branches/4.4.x/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/ListenerEndpointImpl.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/branches/4.4.x/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/ListenerEndpointImpl.java?rev=1794645&r1=1794644&r2=1794645&view=diff
==============================================================================
--- httpcomponents/httpcore/branches/4.4.x/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/ListenerEndpointImpl.java (original)
+++ httpcomponents/httpcore/branches/4.4.x/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/ListenerEndpointImpl.java Tue May  9 22:05:41 2017
@@ -156,4 +156,10 @@ public class ListenerEndpointImpl implem
         }
     }
 
+    @Override
+    public String toString() {
+        return "[address=" + address + ", key=" + key + ", closed=" + closed + ", completed="
+                + completed + ", exception=" + exception + ", callback=" + callback + "]";
+    }
+
 }