public class Proxy extends IdentifiableBase implements java.io.Serializable, java.lang.Cloneable
<proxy>
element contains
informations required to a proxy settings.Modifier and Type | Field and Description |
---|---|
private boolean |
active
Whether this proxy configuration is the active
one.
|
private java.lang.String |
host
The proxy host.
|
private java.lang.String |
nonProxyHosts
The list of non-proxied hosts (delimited by |).
|
private java.lang.String |
password
The proxy password.
|
private int |
port
The proxy port.
|
private java.lang.String |
protocol
The proxy protocol.
|
private java.lang.String |
username
The proxy user.
|
GLOBAL_LEVEL, USER_LEVEL
Constructor and Description |
---|
Proxy() |
Modifier and Type | Method and Description |
---|---|
Proxy |
clone()
Method clone.
|
java.lang.String |
getHost()
Get the proxy host.
|
java.lang.String |
getNonProxyHosts()
Get the list of non-proxied hosts (delimited by |).
|
java.lang.String |
getPassword()
Get the proxy password.
|
int |
getPort()
Get the proxy port.
|
java.lang.String |
getProtocol()
Get the proxy protocol.
|
java.lang.String |
getUsername()
Get the proxy user.
|
boolean |
isActive()
Get whether this proxy configuration is the active one.
|
void |
setActive(boolean active)
Set whether this proxy configuration is the active one.
|
void |
setHost(java.lang.String host)
Set the proxy host.
|
void |
setNonProxyHosts(java.lang.String nonProxyHosts)
Set the list of non-proxied hosts (delimited by |).
|
void |
setPassword(java.lang.String password)
Set the proxy password.
|
void |
setPort(int port)
Set the proxy port.
|
void |
setProtocol(java.lang.String protocol)
Set the proxy protocol.
|
void |
setUsername(java.lang.String username)
Set the proxy user.
|
getId, setId
getSourceLevel, setSourceLevel
private boolean active
private java.lang.String protocol
private java.lang.String username
private java.lang.String password
private int port
private java.lang.String host
private java.lang.String nonProxyHosts
public Proxy clone()
clone
in class IdentifiableBase
public java.lang.String getHost()
public java.lang.String getNonProxyHosts()
public java.lang.String getPassword()
public int getPort()
public java.lang.String getProtocol()
public java.lang.String getUsername()
public boolean isActive()
public void setActive(boolean active)
active
- a active object.public void setHost(java.lang.String host)
host
- a host object.public void setNonProxyHosts(java.lang.String nonProxyHosts)
nonProxyHosts
- a nonProxyHosts object.public void setPassword(java.lang.String password)
password
- a password object.public void setPort(int port)
port
- a port object.public void setProtocol(java.lang.String protocol)
protocol
- a protocol object.public void setUsername(java.lang.String username)
username
- a username object.