hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [09/13] httpcomponents-core git commit: Add toString() for debugging and logging.
Date Wed, 10 May 2017 07:33:56 GMT
Add toString() for debugging and logging.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk@1794646 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/3a677d47
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/3a677d47
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/3a677d47

Branch: refs/heads/trunk
Commit: 3a677d47cb872b6ede20b28e93d3206f08b349ac
Parents: 9c362d4
Author: Gary D. Gregory <ggregory@apache.org>
Authored: Tue May 9 22:09:03 2017 +0000
Committer: Gary D. Gregory <ggregory@apache.org>
Committed: Tue May 9 22:09:03 2017 +0000

----------------------------------------------------------------------
 .../java/org/apache/hc/core5/reactor/ListenerEndpointImpl.java | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/3a677d47/httpcore5/src/main/java/org/apache/hc/core5/reactor/ListenerEndpointImpl.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/reactor/ListenerEndpointImpl.java
b/httpcore5/src/main/java/org/apache/hc/core5/reactor/ListenerEndpointImpl.java
index 45b54e6..ace97ba 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/reactor/ListenerEndpointImpl.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/reactor/ListenerEndpointImpl.java
@@ -76,6 +76,12 @@ public class ListenerEndpointImpl implements ListenerEndpoint {
     }
 
     @Override
+    public String toString() {
+        return "[address=" + address + ", key=" + key + ", closed=" + closed + ", completed="
+                + completed + ", exception=" + exception + ", callback=" + callback + "]";
+    }
+
+    @Override
     public void waitFor() throws InterruptedException {
         if (this.completed) {
             return;


Mime
View raw message