RequestConfig
.@Deprecated @Immutable public class ConnRouteParams extends Object implements ConnRoutePNames
HttpParams
.Modifier and Type | Field and Description |
---|---|
static HttpHost |
NO_HOST
Deprecated.
A special value indicating "no host".
|
static HttpRoute |
NO_ROUTE
Deprecated.
A special value indicating "no route".
|
DEFAULT_PROXY, FORCED_ROUTE, LOCAL_ADDRESS
Modifier and Type | Method and Description |
---|---|
static HttpHost |
getDefaultProxy(HttpParams params)
Deprecated.
Obtains the
DEFAULT_PROXY
parameter value. |
static HttpRoute |
getForcedRoute(HttpParams params)
Deprecated.
Obtains the
FORCED_ROUTE
parameter value. |
static InetAddress |
getLocalAddress(HttpParams params)
Deprecated.
Obtains the
LOCAL_ADDRESS
parameter value. |
static void |
setDefaultProxy(HttpParams params,
HttpHost proxy)
Deprecated.
Sets the
DEFAULT_PROXY
parameter value. |
static void |
setForcedRoute(HttpParams params,
HttpRoute route)
Deprecated.
Sets the
FORCED_ROUTE
parameter value. |
static void |
setLocalAddress(HttpParams params,
InetAddress local)
Deprecated.
Sets the
LOCAL_ADDRESS
parameter value. |
public static final HttpHost NO_HOST
public static HttpHost getDefaultProxy(HttpParams params)
DEFAULT_PROXY
parameter value.
NO_HOST
will be mapped to null
,
to allow unsetting in a hierarchy.params
- the parameters in which to look upnull
if not setpublic static void setDefaultProxy(HttpParams params, HttpHost proxy)
DEFAULT_PROXY
parameter value.params
- the parameters in which to set the valueproxy
- the value to set, may be null
.
Note that NO_HOST
will be mapped to
null
by getDefaultProxy(org.apache.http.params.HttpParams)
,
to allow for explicit unsetting in hierarchies.public static HttpRoute getForcedRoute(HttpParams params)
FORCED_ROUTE
parameter value.
NO_ROUTE
will be mapped to null
,
to allow unsetting in a hierarchy.params
- the parameters in which to look upnull
if not setpublic static void setForcedRoute(HttpParams params, HttpRoute route)
FORCED_ROUTE
parameter value.params
- the parameters in which to set the valueroute
- the value to set, may be null
.
Note that NO_ROUTE
will be mapped to
null
by getForcedRoute(org.apache.http.params.HttpParams)
,
to allow for explicit unsetting in hierarchies.public static InetAddress getLocalAddress(HttpParams params)
LOCAL_ADDRESS
parameter value.
There is no special value that would automatically be mapped to
null
. You can use the wildcard address (0.0.0.0 for IPv4,
:: for IPv6) to override a specific local address in a hierarchy.params
- the parameters in which to look upnull
if not setpublic static void setLocalAddress(HttpParams params, InetAddress local)
LOCAL_ADDRESS
parameter value.params
- the parameters in which to set the valuelocal
- the value to set, may be null
Copyright © 1999–2013 The Apache Software Foundation. All rights reserved.