Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0FD40200C73 for ; Wed, 10 May 2017 09:33:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0EFFE160BA8; Wed, 10 May 2017 07:33:51 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 46953160BD0 for ; Wed, 10 May 2017 09:33:50 +0200 (CEST) Received: (qmail 42590 invoked by uid 500); 10 May 2017 07:33:49 -0000 Mailing-List: contact commits-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list commits@hc.apache.org Received: (qmail 42215 invoked by uid 99); 10 May 2017 07:33:49 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2017 07:33:49 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id EA5ACE3C41; Wed, 10 May 2017 07:33:48 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: olegk@apache.org To: commits@hc.apache.org Date: Wed, 10 May 2017 07:33:55 -0000 Message-Id: <38a6601889574aacb4105228b28afe6e@git.apache.org> In-Reply-To: <25607efa5f6a4ece87d25d2a2aa7797b@git.apache.org> References: <25607efa5f6a4ece87d25d2a2aa7797b@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [08/13] httpcomponents-core git commit: Add toString() for debugging and logging. archived-at: Wed, 10 May 2017 07:33:51 -0000 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 Authored: Tue May 9 22:05:41 2017 +0000 Committer: Gary D. Gregory 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 + "]"; + } + }