From 537bdb10dc8121b5111b0cd44049bbcc0ef0e766 Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Sun, 7 May 2006 18:34:37 +0000 Subject: [PATCH] Synched with the latest HttpCore API snapshot git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@404814 13f79535-47bb-0310-9956-ffa450edef68 --- .../httpclient/impl/DefaultResponseConsumedWatcher.java | 2 +- .../httpclient/impl/TestDefaultResponseConsumedWatcher.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/java/org/apache/httpclient/impl/DefaultResponseConsumedWatcher.java b/src/java/org/apache/httpclient/impl/DefaultResponseConsumedWatcher.java index a1e5a9304..9656c6a70 100644 --- a/src/java/org/apache/httpclient/impl/DefaultResponseConsumedWatcher.java +++ b/src/java/org/apache/httpclient/impl/DefaultResponseConsumedWatcher.java @@ -31,9 +31,9 @@ package org.apache.httpclient.impl; import java.io.IOException; +import org.apache.http.ConnectionReuseStrategy; import org.apache.http.HttpConnection; import org.apache.http.HttpResponse; -import org.apache.http.impl.ConnectionReuseStrategy; import org.apache.http.impl.DefaultConnectionReuseStrategy; /** diff --git a/src/test/org/apache/httpclient/impl/TestDefaultResponseConsumedWatcher.java b/src/test/org/apache/httpclient/impl/TestDefaultResponseConsumedWatcher.java index 0a39a5b66..6acf339d1 100644 --- a/src/test/org/apache/httpclient/impl/TestDefaultResponseConsumedWatcher.java +++ b/src/test/org/apache/httpclient/impl/TestDefaultResponseConsumedWatcher.java @@ -32,7 +32,7 @@ import java.io.ByteArrayInputStream; import org.apache.http.Header; import org.apache.http.HttpConnection; -import org.apache.http.HttpMutableResponse; +import org.apache.http.HttpResponse; import org.apache.http.HttpVersion; import org.apache.http.StatusLine; import org.apache.http.entity.BasicHttpEntity; @@ -87,7 +87,7 @@ public class TestDefaultResponseConsumedWatcher extends TestCase { entity.setContent(new ByteArrayInputStream(data)); StatusLine statusline = new StatusLine(HttpVersion.HTTP_1_0, 200, "OK"); - HttpMutableResponse response = new BasicHttpResponse(statusline); + HttpResponse response = new BasicHttpResponse(statusline); response.setHeader(new Header("Connection", "Close")); response.setParams(new DefaultHttpParams(null)); response.setEntity(entity); @@ -110,7 +110,7 @@ public class TestDefaultResponseConsumedWatcher extends TestCase { entity.setContent(new ByteArrayInputStream(data)); StatusLine statusline = new StatusLine(HttpVersion.HTTP_1_1, 200, "OK"); - HttpMutableResponse response = new BasicHttpResponse(statusline); + HttpResponse response = new BasicHttpResponse(statusline); response.setHeader(new Header("Connection", "Keep-alive")); response.setParams(new DefaultHttpParams(null)); response.setEntity(entity);