[prev in list] [next in list] [prev in thread] [next in thread]
List: httpcomponents-commits
Subject: svn commit: r528430 -
From: olegk () apache ! org
Date: 2007-04-13 10:32:58
Message-ID: 20070413103258.899011A983A () eris ! apache ! org
[Download RAW message or body]
Author: olegk
Date: Fri Apr 13 03:32:57 2007
New Revision: 528430
URL: http://svn.apache.org/viewvc?view=rev&rev=528430
Log:
Removed HttpGet, HttpHead, and HttpPost classes from HttpCore
Modified:
jakarta/httpcomponents/httpcore/trunk/module-niossl/src/test/java/org/apache/http/impl/nio/reactor/TestNIOSSLHttp.java
Modified: jakarta/httpcomponents/httpcore/trunk/module-niossl/src/test/java/org/apache/http/impl/nio/reactor/TestNIOSSLHttp.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/module-niossl/ \
src/test/java/org/apache/http/impl/nio/reactor/TestNIOSSLHttp.java?view=diff&rev=528430&r1=528429&r2=528430
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/module-niossl/src/test/java/org/apache/http/impl/nio/reactor/TestNIOSSLHttp.java \
(original)
+++ jakarta/httpcomponents/httpcore/trunk/module-niossl/src/test/java/org/apache/http/impl/nio/reactor/TestNIOSSLHttp.java \
Fri Apr 13 03:32:57 2007 @@ -48,8 +48,8 @@
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.nio.mockup.TestHttpSSLClient;
import org.apache.http.impl.nio.mockup.TestHttpSSLServer;
-import org.apache.http.message.HttpGet;
-import org.apache.http.message.HttpPost;
+import org.apache.http.message.BasicHttpRequest;
+import org.apache.http.message.BasicHttpEntityEnclosingRequest;
import org.apache.http.nio.NHttpConnection;
import org.apache.http.nio.protocol.HttpRequestExecutionHandler;
import org.apache.http.params.HttpProtocolParams;
@@ -161,9 +161,9 @@
public HttpRequest submitRequest(final HttpContext context) {
int i = ((Integer) context.getAttribute("REQ-COUNT")).intValue();
- HttpGet get = null;
+ BasicHttpRequest get = null;
if (i < reqNo) {
- get = new HttpGet("/?" + i);
+ get = new BasicHttpRequest("GET", "/?" + i);
context.setAttribute("REQ-COUNT", new Integer(i + 1));
}
return get;
@@ -238,7 +238,7 @@
* with content length delimited content over multiple connections.
*/
@SuppressWarnings("unchecked")
- public void testSimpleHttpPostsWithContentLength() throws Exception {
+ public void testSimpleBasicHttpEntityEnclosingRequestsWithContentLength() throws \
Exception {
final int connNo = 3;
final int reqNo = 20;
@@ -293,9 +293,9 @@
public HttpRequest submitRequest(final HttpContext context) {
int i = ((Integer) context.getAttribute("REQ-COUNT")).intValue();
- HttpPost post = null;
+ BasicHttpEntityEnclosingRequest post = null;
if (i < reqNo) {
- post = new HttpPost("/?" + i);
+ post = new BasicHttpEntityEnclosingRequest("POST", "/?" + i);
byte[] data = (byte[]) testData.get(i);
ByteArrayEntity outgoing = new ByteArrayEntity(data);
post.setEntity(outgoing);
@@ -374,7 +374,7 @@
* with chunk coded content content over multiple connections.
*/
@SuppressWarnings("unchecked")
- public void testSimpleHttpPostsChunked() throws Exception {
+ public void testSimpleBasicHttpEntityEnclosingRequestsChunked() throws Exception \
{
final int connNo = 3;
final int reqNo = 20;
@@ -428,9 +428,9 @@
public HttpRequest submitRequest(final HttpContext context) {
int i = ((Integer) context.getAttribute("REQ-COUNT")).intValue();
- HttpPost post = null;
+ BasicHttpEntityEnclosingRequest post = null;
if (i < reqNo) {
- post = new HttpPost("/?" + i);
+ post = new BasicHttpEntityEnclosingRequest("POST", "/?" + i);
byte[] data = (byte[]) testData.get(i);
ByteArrayEntity outgoing = new ByteArrayEntity(data);
outgoing.setChunked(true);
@@ -510,7 +510,7 @@
* POST requests over multiple persistent connections.
*/
@SuppressWarnings("unchecked")
- public void testSimpleHttpPostsHTTP10() throws Exception {
+ public void testSimpleBasicHttpEntityEnclosingRequestsHTTP10() throws Exception \
{
final int connNo = 3;
final int reqNo = 20;
@@ -569,9 +569,9 @@
public HttpRequest submitRequest(final HttpContext context) {
int i = ((Integer) context.getAttribute("REQ-COUNT")).intValue();
- HttpPost post = null;
+ BasicHttpEntityEnclosingRequest post = null;
if (i < reqNo) {
- post = new HttpPost("/?" + i);
+ post = new BasicHttpEntityEnclosingRequest("POST", "/?" + i);
byte[] data = (byte[]) testData.get(i);
ByteArrayEntity outgoing = new ByteArrayEntity(data);
post.setEntity(outgoing);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic