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 2017/05/10 07:33:55 UTC
[08/13] httpcomponents-core git commit: Add toString() for debugging
and logging.
Add toString() for debugging and logging.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1794645 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/7c5027d3
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/7c5027d3
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/7c5027d3
Branch: refs/heads/4.4.x
Commit: 7c5027d3cacd2c234a84177f872e539d3591d4a1
Parents: e21e8d4
Author: Gary D. Gregory <gg...@apache.org>
Authored: Tue May 9 22:05:41 2017 +0000
Committer: Gary D. Gregory <gg...@apache.org>
Committed: Tue May 9 22:05:41 2017 +0000
----------------------------------------------------------------------
.../org/apache/http/impl/nio/reactor/ListenerEndpointImpl.java | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/7c5027d3/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/ListenerEndpointImpl.java
----------------------------------------------------------------------
diff --git a/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/ListenerEndpointImpl.java b/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/ListenerEndpointImpl.java
index 80a9267..34711a0 100644
--- a/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/ListenerEndpointImpl.java
+++ b/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/ListenerEndpointImpl.java
@@ -156,4 +156,10 @@ public class ListenerEndpointImpl implements ListenerEndpoint {
}
}
+ @Override
+ public String toString() {
+ return "[address=" + address + ", key=" + key + ", closed=" + closed + ", completed="
+ + completed + ", exception=" + exception + ", callback=" + callback + "]";
+ }
+
}