From 017fad655d4d223b44155745d4c1592b1264a6f7 Mon Sep 17 00:00:00 2001 From: Roland Weber Date: Sat, 8 Sep 2007 12:41:42 +0000 Subject: [PATCH] HTTPCORE-110: removed lineParser and lineFormatter attributes git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@573830 13f79535-47bb-0310-9956-ffa450edef68 --- .../impl/conn/DefaultClientConnection.java | 3 +- .../conn/DefaultClientConnectionOperator.java | 31 +------------------ 2 files changed, 3 insertions(+), 31 deletions(-) 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(); }