diff --git a/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnection.java b/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnection.java index 44f3f53fb..032ab4578 100644 --- a/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnection.java +++ b/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnection.java @@ -171,8 +171,9 @@ public class DefaultClientConnection extends SocketHttpClientConnection final SessionInputBuffer buffer, final HttpResponseFactory responseFactory, final HttpParams params) { + // override in derived class to specify a line parser return new DefaultResponseParser - (buffer, getLineParser(), responseFactory, params); + (buffer, null, responseFactory, params); } diff --git a/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java b/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java index e3b8bc6e4..340023f4a 100644 --- a/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java +++ b/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java @@ -36,7 +36,6 @@ import java.net.Socket; import java.net.InetAddress; import org.apache.http.HttpHost; -import org.apache.http.message.LineParser; import org.apache.http.params.HttpParams; import org.apache.http.params.HttpConnectionParams; import org.apache.http.protocol.HttpContext; @@ -70,12 +69,6 @@ public class DefaultClientConnectionOperator /** The scheme registry for looking up socket factories. */ protected SchemeRegistry schemeRegistry; - /** - * The line parser to use for created connections. - * null indicates the default parser. - */ - protected LineParser lineParser; - /** * Creates a new client connection operator for the given scheme registry. @@ -91,31 +84,9 @@ public class DefaultClientConnectionOperator } - /** - * Obtains the line parser to be used by the connections. - * - * @return the line parser, or null for the default - */ - public LineParser getLineParser() { - return lineParser; - } - - - /** - * Specifies the line parser to be used by the connections. - * - * @param parser the line parser, or null for the default - */ - public void setLineParser(LineParser parser) { - lineParser = parser; - } - - // non-javadoc, see interface ClientConnectionOperator public OperatedClientConnection createConnection() { - DefaultClientConnection dcc = new DefaultClientConnection(); - dcc.setLineParser(lineParser); - return dcc; + return new DefaultClientConnection(); }