public class ProxySettings
extends java.lang.Object
| Constructor and Description |
|---|
ProxySettings(java.net.Proxy proxy)
Create proxy settings for connecting to a proxy without a username and password
|
ProxySettings(java.net.Proxy proxy,
java.lang.String username,
char[] password)
Create proxy settings for connecting to a proxy with a username and password
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHostname() |
char[] |
getPassword() |
int |
getPort() |
java.net.Proxy |
getProxy() |
java.lang.String |
getUsername() |
public ProxySettings(java.net.Proxy proxy,
java.lang.String username,
char[] password)
proxy - the proxy to communicate throughusername - the username to authenticate against the proxy withpassword - the password to authenticate against the proxy withpublic ProxySettings(java.net.Proxy proxy)
proxy - the proxy to communicate throughpublic java.net.Proxy getProxy()
public java.lang.String getHostname()
public int getPort()
public java.lang.String getUsername()
public char[] getPassword()
Copyright © 2023. All rights reserved.