|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.conn.params.ConnRouteParams
RequestConfig
.
@Deprecated @Contract(threading=IMMUTABLE) public class ConnRouteParams
An adaptor for manipulating HTTP routing parameters
in HttpParams
.
Field Summary | |
---|---|
static org.apache.http.HttpHost |
NO_HOST
Deprecated. A special value indicating "no host". |
static HttpRoute |
NO_ROUTE
Deprecated. A special value indicating "no route". |
Fields inherited from interface org.apache.http.conn.params.ConnRoutePNames |
---|
DEFAULT_PROXY, FORCED_ROUTE, LOCAL_ADDRESS |
Method Summary | |
---|---|
static org.apache.http.HttpHost |
getDefaultProxy(org.apache.http.params.HttpParams params)
Deprecated. Obtains the DEFAULT_PROXY
parameter value. |
static HttpRoute |
getForcedRoute(org.apache.http.params.HttpParams params)
Deprecated. Obtains the FORCED_ROUTE
parameter value. |
static InetAddress |
getLocalAddress(org.apache.http.params.HttpParams params)
Deprecated. Obtains the LOCAL_ADDRESS
parameter value. |
static void |
setDefaultProxy(org.apache.http.params.HttpParams params,
org.apache.http.HttpHost proxy)
Deprecated. Sets the DEFAULT_PROXY
parameter value. |
static void |
setForcedRoute(org.apache.http.params.HttpParams params,
HttpRoute route)
Deprecated. Sets the FORCED_ROUTE
parameter value. |
static void |
setLocalAddress(org.apache.http.params.HttpParams params,
InetAddress local)
Deprecated. Sets the LOCAL_ADDRESS
parameter value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.http.HttpHost NO_HOST
public static final HttpRoute NO_ROUTE
NO_HOST
as the target.
Method Detail |
---|
public static org.apache.http.HttpHost getDefaultProxy(org.apache.http.params.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 up
null
if not setpublic static void setDefaultProxy(org.apache.http.params.HttpParams params, org.apache.http.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(org.apache.http.params.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 up
null
if not setpublic static void setForcedRoute(org.apache.http.params.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(org.apache.http.params.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 up
null
if not setpublic static void setLocalAddress(org.apache.http.params.HttpParams params, InetAddress local)
LOCAL_ADDRESS
parameter value.
params
- the parameters in which to set the valuelocal
- the value to set, may be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |