ProxySearchStrategypublic class EnvProxySearchStrategy extends Object implements ProxySearchStrategy
| Constructor | Description |
|---|---|
EnvProxySearchStrategy() |
Constructor Will use the default environment variables.
|
EnvProxySearchStrategy(String httpEnv,
String httpsEnv,
String ftpEnv,
String noProxyEnv) |
Constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
String |
getName() |
Gets the printable name of the search strategy.
|
ProxySelector |
getProxySelector() |
Loads the proxy settings from environment variables.
|
Properties |
readSettings() |
Loads the settings and stores them in a properties map.
|
public EnvProxySearchStrategy()
public EnvProxySearchStrategy(String httpEnv, String httpsEnv, String ftpEnv, String noProxyEnv)
httpEnv - name of environment variablehttpsEnv - name of environment variableftpEnv - name of environment variablenoProxyEnv - name of environment variablepublic Properties readSettings()
public ProxySelector getProxySelector()
getProxySelector in interface ProxySearchStrategypublic String getName()
getName in interface ProxySearchStrategyCopyright © 2019. All rights reserved.