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
This commit is contained in:
Roland Weber 2007-09-08 12:41:42 +00:00
parent 8325bfe2d1
commit 017fad655d
2 changed files with 3 additions and 31 deletions

View File

@ -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);
}

View File

@ -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.
* <code>null</code> 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 <code>null</code> for the default
*/
public LineParser getLineParser() {
return lineParser;
}
/**
* Specifies the line parser to be used by the connections.
*
* @param parser the line parser, or <code>null</code> 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();
}