hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [28/42] httpcomponents-core git commit: Add toString() method. Local build OK.
Date Thu, 11 May 2017 18:18:03 GMT
Add toString() method. Local build OK.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1794174
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/6cabd923
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/6cabd923
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/6cabd923

Branch: refs/heads/4.4.x
Commit: 6cabd923b39af50068ffa5daa098236efd57e6df
Parents: 646c13a
Author: Gary D. Gregory <ggregory@apache.org>
Authored: Sat May 6 19:18:09 2017 +0000
Committer: Oleg Kalnichevski <olegk@apache.org>
Committed: Thu May 11 20:16:44 2017 +0200

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


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/6cabd923/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..c6aa3e6 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,13 @@ class SessionHttpContext implements HttpContext {
         this.iosession.setAttribute(id, obj);
     }
 
+    @Override
+    public String toString() {
+        final StringBuilder sb = new StringBuilder();
+        sb.append("[iosession=");
+        sb.append(iosession);
+        sb.append("]");
+        return sb.toString();
+    }
+
 }


Mime
View raw message