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:
- Serializable,- Cloneable
The 
<proxy> element contains
 informations required to a proxy settings.- Version:
- $Revision$ $Date$
- See Also:
- 
Field SummaryFields inherited from class org.apache.maven.settings.TrackableBaseGLOBAL_LEVEL, USER_LEVEL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Method clone.getHost()Get the proxy host.Get the list of non-proxied hosts (delimited by |).Get the proxy password.intgetPort()Get the proxy port.Get the proxy protocol.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.voidSet the proxy host.voidsetNonProxyHosts(String nonProxyHosts) Set the list of non-proxied hosts (delimited by |).voidsetPassword(String password) Set the proxy password.voidsetPort(int port) Set the proxy port.voidsetProtocol(String protocol) Set the proxy protocol.voidsetUsername(String username) Set the proxy user.Methods inherited from class org.apache.maven.settings.IdentifiableBasegetId, setIdMethods inherited from class org.apache.maven.settings.TrackableBasegetSourceLevel, setSourceLevel
- 
Constructor Details- 
Proxypublic Proxy()
 
- 
- 
Method Details- 
cloneMethod clone.- Overrides:
- clonein class- IdentifiableBase
- Returns:
- Proxy
 
- 
getHostGet the proxy host.- Returns:
- String
 
- 
getNonProxyHostsGet the list of non-proxied hosts (delimited by |).- Returns:
- String
 
- 
getPasswordGet the proxy password.- Returns:
- String
 
- 
getPortpublic int getPort()Get the proxy port.- Returns:
- int
 
- 
getProtocolGet the proxy protocol.- Returns:
- String
 
- 
getUsernameGet the proxy user.- Returns:
- String
 
- 
isActivepublic boolean isActive()Get whether this proxy configuration is the active one.- Returns:
- boolean
 
- 
setActivepublic void setActive(boolean active) Set whether this proxy configuration is the active one.- Parameters:
- active- a active object.
 
- 
setHostSet the proxy host.- Parameters:
- host- a host object.
 
- 
setNonProxyHostsSet the list of non-proxied hosts (delimited by |).- Parameters:
- nonProxyHosts- a nonProxyHosts object.
 
- 
setPasswordSet the proxy password.- Parameters:
- password- a password object.
 
- 
setPortpublic void setPort(int port) Set the proxy port.- Parameters:
- port- a port object.
 
- 
setProtocolSet the proxy protocol.- Parameters:
- protocol- a protocol object.
 
- 
setUsernameSet the proxy user.- Parameters:
- username- a username object.
 
 
-