Package org.apache.http.conn.params
Class ConnRouteParams
- java.lang.Object
-
- org.apache.http.conn.params.ConnRouteParams
-
- All Implemented Interfaces:
ConnRoutePNames
@Deprecated @Contract(threading=IMMUTABLE) public class ConnRouteParams extends java.lang.Object implements ConnRoutePNames
Deprecated.(4.3) useRequestConfig
.An adaptor for manipulating HTTP routing parameters inHttpParams
.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description static 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
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static HttpHost
getDefaultProxy(HttpParams params)
Deprecated.Obtains theDEFAULT_PROXY
parameter value.static HttpRoute
getForcedRoute(HttpParams params)
Deprecated.Obtains theFORCED_ROUTE
parameter value.static java.net.InetAddress
getLocalAddress(HttpParams params)
Deprecated.Obtains theLOCAL_ADDRESS
parameter value.static void
setDefaultProxy(HttpParams params, HttpHost proxy)
Deprecated.Sets theDEFAULT_PROXY
parameter value.static void
setForcedRoute(HttpParams params, HttpRoute route)
Deprecated.Sets theFORCED_ROUTE
parameter value.static void
setLocalAddress(HttpParams params, java.net.InetAddress local)
Deprecated.Sets theLOCAL_ADDRESS
parameter value.
-
-
-
Field Detail
-
NO_HOST
public static final HttpHost NO_HOST
Deprecated.A special value indicating "no host". This relies on a nonsense scheme name to avoid conflicts with actual hosts. Note that this is a valid host.
-
-
Method Detail
-
getDefaultProxy
public static HttpHost getDefaultProxy(HttpParams params)
Deprecated.Obtains theDEFAULT_PROXY
parameter value.NO_HOST
will be mapped tonull
, to allow unsetting in a hierarchy.- Parameters:
params
- the parameters in which to look up- Returns:
- the default proxy set in the argument parameters, or
null
if not set
-
setDefaultProxy
public static void setDefaultProxy(HttpParams params, HttpHost proxy)
Deprecated.Sets theDEFAULT_PROXY
parameter value.- Parameters:
params
- the parameters in which to set the valueproxy
- the value to set, may benull
. Note thatNO_HOST
will be mapped tonull
bygetDefaultProxy(org.apache.http.params.HttpParams)
, to allow for explicit unsetting in hierarchies.
-
getForcedRoute
public static HttpRoute getForcedRoute(HttpParams params)
Deprecated.Obtains theFORCED_ROUTE
parameter value.NO_ROUTE
will be mapped tonull
, to allow unsetting in a hierarchy.- Parameters:
params
- the parameters in which to look up- Returns:
- the forced route set in the argument parameters, or
null
if not set
-
setForcedRoute
public static void setForcedRoute(HttpParams params, HttpRoute route)
Deprecated.Sets theFORCED_ROUTE
parameter value.- Parameters:
params
- the parameters in which to set the valueroute
- the value to set, may benull
. Note thatNO_ROUTE
will be mapped tonull
bygetForcedRoute(org.apache.http.params.HttpParams)
, to allow for explicit unsetting in hierarchies.
-
getLocalAddress
public static java.net.InetAddress getLocalAddress(HttpParams params)
Deprecated.Obtains theLOCAL_ADDRESS
parameter value. There is no special value that would automatically be mapped tonull
. You can use the wildcard address (0.0.0.0 for IPv4, :: for IPv6) to override a specific local address in a hierarchy.- Parameters:
params
- the parameters in which to look up- Returns:
- the local address set in the argument parameters, or
null
if not set
-
setLocalAddress
public static void setLocalAddress(HttpParams params, java.net.InetAddress local)
Deprecated.Sets theLOCAL_ADDRESS
parameter value.- Parameters:
params
- the parameters in which to set the valuelocal
- the value to set, may benull
-
-