You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2018/08/03 22:41:12 UTC

httpcomponents-core git commit: Add a few toString() methods.

Repository: httpcomponents-core
Updated Branches:
  refs/heads/master c382e8825 -> 331f8b708


Add a few toString() methods.

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

Branch: refs/heads/master
Commit: 331f8b70866ae3dd1aeabb331d4585f2bc8b08d9
Parents: c382e88
Author: Gary Gregory <gg...@apache.org>
Authored: Fri Aug 3 16:41:08 2018 -0600
Committer: Gary Gregory <gg...@apache.org>
Committed: Fri Aug 3 16:41:08 2018 -0600

----------------------------------------------------------------------
 .../hc/core5/http/impl/nio/ServerHttp1StreamDuplexer.java      | 5 +++++
 .../hc/core5/http/impl/nio/ServerHttp1StreamHandler.java       | 6 ++++++
 2 files changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/331f8b70/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ServerHttp1StreamDuplexer.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ServerHttp1StreamDuplexer.java b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ServerHttp1StreamDuplexer.java
index 334be3f..3d24e6d 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ServerHttp1StreamDuplexer.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ServerHttp1StreamDuplexer.java
@@ -164,6 +164,11 @@ public class ServerHttp1StreamDuplexer extends AbstractHttp1StreamDuplexer<HttpR
                 // empty
             }
 
+            @Override
+            public String toString() {
+                return "Http1StreamChannel[" + ServerHttp1StreamDuplexer.this.toString() + "]";
+            }
+
         };
     }
 

http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/331f8b70/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ServerHttp1StreamHandler.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ServerHttp1StreamHandler.java b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ServerHttp1StreamHandler.java
index 85e8d05..44fbe6f 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ServerHttp1StreamHandler.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ServerHttp1StreamHandler.java
@@ -236,6 +236,11 @@ class ServerHttp1StreamHandler implements ResourceHolder {
                 commitPromise();
             }
 
+            @Override
+            public String toString() {
+                return super.toString() + " " + ServerHttp1StreamHandler.this.toString();
+            }
+
         };
         try {
             httpProcessor.process(request, requestEntityDetails, context);
@@ -311,6 +316,7 @@ class ServerHttp1StreamHandler implements ResourceHolder {
         return "[" +
                 "requestState=" + requestState +
                 ", responseState=" + responseState +
+                ", outputChannel=" + outputChannel +
                 ']';
     }