HTTPCLIENT-1210: HttpRequestBase#toString() method

Contributed by Gary D. Gregory <garydgregory at gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353104 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2012-06-23 09:53:11 +00:00
parent da16fdc973
commit 1863df4df9
1 changed files with 5 additions and 0 deletions

View File

@ -195,4 +195,9 @@ public abstract class HttpRequestBase extends AbstractHttpMessage
return clone; return clone;
} }
@Override
public String toString() {
return getMethod() + " " + getURI() + " " + getProtocolVersion();
}
} }