[HTTPCORE-5] Made NameValuePair, StatusLine, RequestLine interfaces
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@418583 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
88665f3e54
commit
b0357c0348
|
@ -34,7 +34,6 @@ import java.io.InputStream;
|
|||
import org.apache.http.HttpConnection;
|
||||
import org.apache.http.HttpResponse;
|
||||
import org.apache.http.HttpVersion;
|
||||
import org.apache.http.StatusLine;
|
||||
import org.apache.http.entity.BasicHttpEntity;
|
||||
import org.apache.http.impl.DefaultHttpParams;
|
||||
import org.apache.http.message.BasicHttpResponse;
|
||||
|
@ -86,8 +85,7 @@ public class TestDefaultResponseConsumedWatcher extends TestCase {
|
|||
entity.setContentLength(data.length);
|
||||
entity.setContent(new ByteArrayInputStream(data));
|
||||
|
||||
StatusLine statusline = new StatusLine(HttpVersion.HTTP_1_0, 200, "OK");
|
||||
HttpResponse response = new BasicHttpResponse(statusline);
|
||||
HttpResponse response = new BasicHttpResponse(HttpVersion.HTTP_1_0, 200);
|
||||
response.addHeader("Connection", "Close");
|
||||
response.setParams(new DefaultHttpParams(null));
|
||||
response.setEntity(entity);
|
||||
|
@ -108,8 +106,7 @@ public class TestDefaultResponseConsumedWatcher extends TestCase {
|
|||
entity.setContentLength(data.length);
|
||||
entity.setContent(new ByteArrayInputStream(data));
|
||||
|
||||
StatusLine statusline = new StatusLine(HttpVersion.HTTP_1_1, 200, "OK");
|
||||
HttpResponse response = new BasicHttpResponse(statusline);
|
||||
HttpResponse response = new BasicHttpResponse(HttpVersion.HTTP_1_1, 200);
|
||||
response.addHeader("Connection", "Keep-alive");
|
||||
response.setParams(new DefaultHttpParams(null));
|
||||
response.setEntity(entity);
|
||||
|
|
Loading…
Reference in New Issue