public class ProxySettings extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProxySettings.Type
Enumeration representing proxy types: HTTP and SOCKS.
|
Constructor and Description |
---|
ProxySettings(ProxySettings.Type type,
String host,
int port,
String username,
String password)
Constructs a ProxySettings object with the specified proxy host, port, username, and password.
|
Modifier and Type | Method and Description |
---|---|
String |
getHost()
Returns the proxy host.
|
String |
getPassword()
Returns the proxy password.
|
int |
getPort()
Returns the proxy port.
|
ProxySettings.Type |
getType()
Returns the proxy type see
ProxySettings.Type enum. |
String |
getUsername()
Returns the proxy username.
|
public ProxySettings(ProxySettings.Type type, String host, int port, String username, String password)
type
- the proxy type see ProxySettings.Type
enum.host
- the hostname or IP address of the proxy serverport
- the port number on which the proxy server is listeningusername
- the username for authentication with the proxy server (can be "" if no authentication is required)password
- the password for authentication with the proxy server (can be "" if no authentication is required)public ProxySettings.Type getType()
ProxySettings.Type
enum.ProxySettings.Type
enum.public String getHost()
public int getPort()
public String getUsername()
public String getPassword()
Copyright © 2005–2024 Onix Solutions. All rights reserved.