hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [17/19] httpcomponents-core git commit: Add toString() for debugging and logging.
Date Fri, 12 May 2017 08:04:41 GMT
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/75e1623f
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/75e1623f
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/75e1623f

Branch: refs/heads/4.4.x
Commit: 75e1623fbe9475db27ed05ab80c5b96a4a3d366d
Parents: 291d6e3
Author: Gary D. Gregory <ggregory@apache.org>
Authored: Tue May 9 22:05:41 2017 +0000
Committer: Oleg Kalnichevski <olegk@apache.org>
Committed: Fri May 12 09:58:42 2017 +0200

----------------------------------------------------------------------
 .../org/apache/http/impl/nio/reactor/ListenerEndpointImpl.java | 6 ++++++
 .../src/main/java/org/apache/http/params/BasicHttpParams.java  | 5 +++++
 2 files changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/75e1623f/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 + "]";
+    }
+
 }

http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/75e1623f/httpcore/src/main/java/org/apache/http/params/BasicHttpParams.java
----------------------------------------------------------------------
diff --git a/httpcore/src/main/java/org/apache/http/params/BasicHttpParams.java b/httpcore/src/main/java/org/apache/http/params/BasicHttpParams.java
index 115171e..18655ad 100644
--- a/httpcore/src/main/java/org/apache/http/params/BasicHttpParams.java
+++ b/httpcore/src/main/java/org/apache/http/params/BasicHttpParams.java
@@ -192,4 +192,9 @@ public class BasicHttpParams extends AbstractHttpParams implements Serializable,
     public Set<String> getNames() {
         return new HashSet<String>(this.parameters.keySet());
     }
+
+    @Override
+    public String toString() {
+        return "[parameters=" + parameters + "]";
+    }
 }


Mime
View raw message