removed param name from HttpConnParams, it's in ConnRoutePNames

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@606425 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Roland Weber 2007-12-22 08:54:55 +00:00
parent ac6366dd0a
commit 2f98b75ee0
2 changed files with 4 additions and 12 deletions

View File

@ -42,17 +42,9 @@ import org.apache.http.params.HttpParams;
* @since 4.0
*/
public class HttpConnParams {
/**
* Defines the default proxy. The default value will be used
* by some {@link org.apache.http.conn.HttpRoutePlanner HttpRoutePlanner}
* implementations, in particular the default implementation.
* <p>
* This parameter expects a value of type {@link org.apache.http.HttpHost}.
* </p>
*/
public static final String DEFAULT_PROXY = "http.default-proxy";
// since the parameter names have been moved to interfaces,
// this class currently is a dummy
/** Disabled default constructor. */
private HttpConnParams() {

View File

@ -41,7 +41,7 @@ import org.apache.http.conn.HttpRoute;
import org.apache.http.conn.HttpRoutePlanner;
import org.apache.http.conn.Scheme;
import org.apache.http.conn.params.HttpConnParams;
import org.apache.http.conn.params.ConnRoutePNames;
/**
@ -82,7 +82,7 @@ public class DefaultHttpRoutePlanner implements HttpRoutePlanner {
}
HttpHost proxy = (HttpHost)
request.getParams().getParameter(HttpConnParams.DEFAULT_PROXY);
request.getParams().getParameter(ConnRoutePNames.DEFAULT_PROXY);
Scheme schm = this.connectionManager.getSchemeRegistry().
getScheme(target.getSchemeName());