public class Proxy extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROXY_HTTP |
static String |
PROXY_SOCKS4 |
static String |
PROXY_SOCKS5 |
Constructor and Description |
---|
Proxy() |
Modifier and Type | Method and Description |
---|---|
String |
getHost()
Return proxy server host name.
|
String |
getNonProxyHosts() |
String |
getNtlmDomain() |
String |
getNtlmHost() |
String |
getPassword()
Get user's password used to login to proxy server.
|
int |
getPort()
Get the proxy port.
|
String |
getProtocol()
Get the protocol of the proxy server.
|
String |
getUserName()
Get the proxy username.
|
void |
setHost(String host)
Set proxy host name.
|
void |
setNonProxyHosts(String nonProxyHosts) |
void |
setNtlmDomain(String ntlmDomain) |
void |
setNtlmHost(String ntlmHost) |
void |
setPassword(String password)
Set the user's password for the proxy server.
|
void |
setPort(int port)
Set the proxy port.
|
void |
setProtocol(String protocol) |
void |
setUserName(String userName)
Set the proxy username.
|
public static final String PROXY_SOCKS5
public static final String PROXY_SOCKS4
public static final String PROXY_HTTP
public String getHost()
public void setHost(String host)
host
- proxy server host namepublic String getPassword()
public void setPassword(String password)
password
- password to use to login to a proxy serverpublic int getPort()
public void setPort(int port)
port
- proxy server portpublic String getUserName()
public void setUserName(String userName)
userName
- username for the proxy serverpublic String getProtocol()
public void setProtocol(String protocol)
protocol
- the protocol of the proxy server like SOCKSv4public String getNonProxyHosts()
public void setNonProxyHosts(String nonProxyHosts)
public String getNtlmHost()
public void setNtlmHost(String ntlmHost)
public void setNtlmDomain(String ntlmDomain)
public String getNtlmDomain()
Copyright © 2001–2023 The Apache Software Foundation. All rights reserved.