hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r528432 - /jakarta/httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/benchmark/HttpBenchmark.java
Date Fri, 13 Apr 2007 10:34:52 GMT
Author: olegk
Date: Fri Apr 13 03:34:51 2007
New Revision: 528432

URL: http://svn.apache.org/viewvc?view=rev&rev=528432
Log:
Removed HttpGet, HttpHead, and HttpPost classes from HttpCore

Modified:
    jakarta/httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/benchmark/HttpBenchmark.java

Modified: jakarta/httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/benchmark/HttpBenchmark.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/benchmark/HttpBenchmark.java?view=diff&rev=528432&r1=528431&r2=528432
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/benchmark/HttpBenchmark.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/benchmark/HttpBenchmark.java
Fri Apr 13 03:34:51 2007
@@ -44,10 +44,9 @@
 import org.apache.http.HttpRequest;
 import org.apache.http.HttpVersion;
 import org.apache.http.entity.FileEntity;
+import org.apache.http.message.BasicHttpEntityEnclosingRequest;
+import org.apache.http.message.BasicHttpRequest;
 import org.apache.http.params.BasicHttpParams;
-import org.apache.http.message.HttpGet;
-import org.apache.http.message.HttpHead;
-import org.apache.http.message.HttpPost;
 import org.apache.http.params.HttpConnectionParams;
 import org.apache.http.params.HttpParams;
 import org.apache.http.params.HttpProtocolParams;
@@ -195,14 +194,15 @@
             if (file.length() > 100000) {
                 entity.setChunked(true);
             }
-            HttpPost httppost = new HttpPost(url.getPath());
+            BasicHttpEntityEnclosingRequest httppost = 
+                new BasicHttpEntityEnclosingRequest("POST", url.getPath());
             httppost.setEntity(entity);
             request = httppost;
         } else if (cmd.hasOption('i')) {
-            HttpHead httphead = new HttpHead(url.getPath());
+            BasicHttpRequest httphead = new BasicHttpRequest("HEAD", url.getPath());
             request = httphead;
         } else {
-            HttpGet httpget = new HttpGet(url.getPath());
+            BasicHttpRequest httpget = new BasicHttpRequest("GET", url.getPath());
             request = httpget;
         }
         if (!keepAlive) {



Mime
View raw message