hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [12/19] httpcomponents-core git commit: Add toString() method.
Date Fri, 12 May 2017 08:04:36 GMT
Add toString() method.


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

Branch: refs/heads/4.4.x
Commit: 1d9dff9118fcaaf686d7de0d75655a5b9b90b979
Parents: 0cc398f
Author: Gary D. Gregory <ggregory@apache.org>
Authored: Sat May 6 19:18:09 2017 +0000
Committer: Oleg Kalnichevski <olegk@apache.org>
Committed: Fri May 12 09:50:40 2017 +0200

----------------------------------------------------------------------
 .../org/apache/http/impl/nio/SessionHttpContext.java    | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/1d9dff91/httpcore-nio/src/main/java/org/apache/http/impl/nio/SessionHttpContext.java
----------------------------------------------------------------------
diff --git a/httpcore-nio/src/main/java/org/apache/http/impl/nio/SessionHttpContext.java b/httpcore-nio/src/main/java/org/apache/http/impl/nio/SessionHttpContext.java
index d597338..21b6ed6 100644
--- a/httpcore-nio/src/main/java/org/apache/http/impl/nio/SessionHttpContext.java
+++ b/httpcore-nio/src/main/java/org/apache/http/impl/nio/SessionHttpContext.java
@@ -54,4 +54,16 @@ class SessionHttpContext implements HttpContext {
         this.iosession.setAttribute(id, obj);
     }
 
+    /**
+     * @since 4.4.7
+     */
+    @Override
+    public String toString() {
+        final StringBuilder sb = new StringBuilder();
+        sb.append("[iosession=");
+        sb.append(iosession);
+        sb.append("]");
+        return sb.toString();
+    }
+
 }


Mime
View raw message