Package org.apache.maven.settings
Class Proxy
- java.lang.Object
-
- org.apache.maven.settings.TrackableBase
-
- org.apache.maven.settings.IdentifiableBase
-
- org.apache.maven.settings.Proxy
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class Proxy extends IdentifiableBase implements java.io.Serializable, java.lang.Cloneable
The<proxy>element contains informations required to a proxy settings.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private booleanactiveWhether this proxy configuration is the active one.private java.lang.StringhostThe proxy host.private java.lang.StringnonProxyHostsThe list of non-proxied hosts (delimited by |).private java.lang.StringpasswordThe proxy password.private intportThe proxy port.private java.lang.StringprotocolThe proxy protocol.private java.lang.StringusernameThe proxy user.-
Fields inherited from class org.apache.maven.settings.TrackableBase
GLOBAL_LEVEL, USER_LEVEL
-
-
Constructor Summary
Constructors Constructor Description Proxy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Proxyclone()Method clone.java.lang.StringgetHost()Get the proxy host.java.lang.StringgetNonProxyHosts()Get the list of non-proxied hosts (delimited by |).java.lang.StringgetPassword()Get the proxy password.intgetPort()Get the proxy port.java.lang.StringgetProtocol()Get the proxy protocol.java.lang.StringgetUsername()Get the proxy user.booleanisActive()Get whether this proxy configuration is the active one.voidsetActive(boolean active)Set whether this proxy configuration is the active one.voidsetHost(java.lang.String host)Set the proxy host.voidsetNonProxyHosts(java.lang.String nonProxyHosts)Set the list of non-proxied hosts (delimited by |).voidsetPassword(java.lang.String password)Set the proxy password.voidsetPort(int port)Set the proxy port.voidsetProtocol(java.lang.String protocol)Set the proxy protocol.voidsetUsername(java.lang.String username)Set the proxy user.-
Methods inherited from class org.apache.maven.settings.IdentifiableBase
getId, setId
-
Methods inherited from class org.apache.maven.settings.TrackableBase
getSourceLevel, setSourceLevel
-
-
-
-
Field Detail
-
active
private boolean active
Whether this proxy configuration is the active one.
-
protocol
private java.lang.String protocol
The proxy protocol.
-
username
private java.lang.String username
The proxy user.
-
password
private java.lang.String password
The proxy password.
-
port
private int port
The proxy port.
-
host
private java.lang.String host
The proxy host.
-
nonProxyHosts
private java.lang.String nonProxyHosts
The list of non-proxied hosts (delimited by |).
-
-
Method Detail
-
clone
public Proxy clone()
Method clone.- Overrides:
clonein classIdentifiableBase- Returns:
- Proxy
-
getHost
public java.lang.String getHost()
Get the proxy host.- Returns:
- String
-
getNonProxyHosts
public java.lang.String getNonProxyHosts()
Get the list of non-proxied hosts (delimited by |).- Returns:
- String
-
getPassword
public java.lang.String getPassword()
Get the proxy password.- Returns:
- String
-
getPort
public int getPort()
Get the proxy port.- Returns:
- int
-
getProtocol
public java.lang.String getProtocol()
Get the proxy protocol.- Returns:
- String
-
getUsername
public java.lang.String getUsername()
Get the proxy user.- Returns:
- String
-
isActive
public boolean isActive()
Get whether this proxy configuration is the active one.- Returns:
- boolean
-
setActive
public void setActive(boolean active)
Set whether this proxy configuration is the active one.- Parameters:
active-
-
setHost
public void setHost(java.lang.String host)
Set the proxy host.- Parameters:
host-
-
setNonProxyHosts
public void setNonProxyHosts(java.lang.String nonProxyHosts)
Set the list of non-proxied hosts (delimited by |).- Parameters:
nonProxyHosts-
-
setPassword
public void setPassword(java.lang.String password)
Set the proxy password.- Parameters:
password-
-
setPort
public void setPort(int port)
Set the proxy port.- Parameters:
port-
-
setProtocol
public void setProtocol(java.lang.String protocol)
Set the proxy protocol.- Parameters:
protocol-
-
setUsername
public void setUsername(java.lang.String username)
Set the proxy user.- Parameters:
username-
-
-