public class ProxySettings extends Object implements Cloneable, Serializable
ProxyManager,
Serialized Form| Constructor and Description |
|---|
ProxySettings()
Constructs disabled proxy settings.
|
ProxySettings(String proxyHost,
String proxyPort)
Constructs proxy settings for host without authentification.
|
ProxySettings(String proxyHost,
String proxyPort,
String proxyLogin,
String proxyPassword)
Constructs proxy settings for host that requires authentification.
|
| Modifier and Type | Method and Description |
|---|---|
ProxySettings |
clone() |
String |
getNonProxyHosts()
Returns non-proxy hosts.
|
String |
getProxyHost()
Returns proxy host.
|
String |
getProxyLogin()
Returns proxy login.
|
String |
getProxyPassword()
Returns proxy password.
|
String |
getProxyPort()
Returns proxy port.
|
int |
getProxyPortInt()
Returns integer proxy port.
|
boolean |
isUseProxy()
Returns whether should use proxy settings or not.
|
boolean |
isUseProxyAuthentification()
Returns whether proxy requires authentification or not.
|
void |
setNonProxyHosts(String nonProxyHosts)
Sets non-proxy hosts.
|
void |
setProxyHost(String proxyHost)
Sets proxy host.
|
void |
setProxyLogin(String proxyLogin)
Sets proxy login.
|
void |
setProxyPassword(String proxyPassword)
Sets proxy password.
|
void |
setProxyPort(String proxyPort)
Sets proxy port.
|
void |
setUseProxy(boolean useProxy)
Sets whether should use proxy settings or not.
|
void |
setUseProxyAuthentification(boolean useProxyAuthentification)
Sets whether proxy requires authentification or not.
|
String |
toString() |
public ProxySettings()
public ProxySettings(String proxyHost, String proxyPort)
proxyHost - proxy hostproxyPort - proxy portpublic boolean isUseProxy()
public void setUseProxy(boolean useProxy)
useProxy - whether should use proxy settings or notpublic String getProxyHost()
public void setProxyHost(String proxyHost)
proxyHost - new proxy hostpublic String getProxyPort()
public int getProxyPortInt()
public void setProxyPort(String proxyPort)
proxyPort - new proxy portpublic String getNonProxyHosts()
public void setNonProxyHosts(String nonProxyHosts)
nonProxyHosts - new non-proxy hostspublic boolean isUseProxyAuthentification()
public void setUseProxyAuthentification(boolean useProxyAuthentification)
useProxyAuthentification - whether proxy requires authentification or notpublic String getProxyLogin()
public void setProxyLogin(String proxyLogin)
proxyLogin - new proxy loginpublic String getProxyPassword()
public void setProxyPassword(String proxyPassword)
proxyPassword - new proxy passwordpublic ProxySettings clone()
Copyright © 2020. All rights reserved.