From 1863df4df9817afcfe2b6179f35311f71ef227f7 Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Sat, 23 Jun 2012 09:53:11 +0000 Subject: [PATCH] HTTPCLIENT-1210: HttpRequestBase#toString() method Contributed by Gary D. Gregory git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353104 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/http/client/methods/HttpRequestBase.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/httpclient/src/main/java/org/apache/http/client/methods/HttpRequestBase.java b/httpclient/src/main/java/org/apache/http/client/methods/HttpRequestBase.java index 4de99406c..5c23fe361 100644 --- a/httpclient/src/main/java/org/apache/http/client/methods/HttpRequestBase.java +++ b/httpclient/src/main/java/org/apache/http/client/methods/HttpRequestBase.java @@ -195,4 +195,9 @@ public abstract class HttpRequestBase extends AbstractHttpMessage return clone; } + @Override + public String toString() { + return getMethod() + " " + getURI() + " " + getProtocolVersion(); + } + }