hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r918638 - in /httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message: BasicHttpRequest.java BasicHttpResponse.java HeaderGroup.java
Date Wed, 03 Mar 2010 19:09:34 GMT
Author: olegk
Date: Wed Mar  3 19:09:34 2010
New Revision: 918638

URL: http://svn.apache.org/viewvc?rev=918638&view=rev
Log:
Added #toString() method

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/BasicHttpRequest.java
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/BasicHttpResponse.java
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/HeaderGroup.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/BasicHttpRequest.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/BasicHttpRequest.java?rev=918638&r1=918637&r2=918638&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/BasicHttpRequest.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/BasicHttpRequest.java
Wed Mar  3 19:09:34 2010
@@ -127,4 +127,8 @@
         return this.requestline;
     }
     
+    public String toString() {
+        return this.method + " " + this.uri + " " + this.headergroup;
+    }
+    
 }

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/BasicHttpResponse.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/BasicHttpResponse.java?rev=918638&r1=918637&r2=918638&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/BasicHttpResponse.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/BasicHttpResponse.java
Wed Mar  3 19:09:34 2010
@@ -191,4 +191,8 @@
             null : this.reasonCatalog.getReason(code, this.locale);
     }
 
+    public String toString() {
+        return this.statusline + " " + this.headergroup;
+    }
+    
 }

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/HeaderGroup.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/HeaderGroup.java?rev=918638&r1=918637&r2=918638&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/HeaderGroup.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/HeaderGroup.java
Wed Mar  3 19:09:34 2010
@@ -289,5 +289,9 @@
         clone.headers.addAll(this.headers);
         return clone;
     }
+
+    public String toString() {
+        return this.headers.toString();
+    }
     
 }



Mime
View raw message