RequestConfig.@Deprecated @Contract(threading=IMMUTABLE) public class ConnRouteParams extends Object implements ConnRoutePNames
HttpParams.| Modifier and Type | Field and Description | 
|---|---|
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". 
 | 
DEFAULT_PROXY, FORCED_ROUTE, LOCAL_ADDRESS| Modifier and Type | Method and Description | 
|---|---|
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. | 
public static final org.apache.http.HttpHost NO_HOST
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 upnull 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 upnull 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 upnull 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 nullCopyright © 1999–2022 The Apache Software Foundation. All rights reserved.