Package org.apache.maven.repository
Class Proxy
- java.lang.Object
-
- org.apache.maven.repository.Proxy
-
public class Proxy extends java.lang.Object
Proxy
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
host
Proxy server hostprivate java.lang.String
nonProxyHosts
The non-proxy hosts.private java.lang.String
ntlmDomain
For NTLM proxies, specifies the NTLM domain.private java.lang.String
ntlmHost
For NTLM proxies, specifies the NTLM host.private java.lang.String
password
Password associated with the proxy serverprivate int
port
Proxy server portprivate java.lang.String
protocol
Type of the proxystatic java.lang.String
PROXY_HTTP
static java.lang.String
PROXY_SOCKS4
static java.lang.String
PROXY_SOCKS5
private java.lang.String
userName
Username used to access the proxy server
-
Constructor Summary
Constructors Constructor Description Proxy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getHost()
Return proxy server host name.java.lang.String
getNonProxyHosts()
java.lang.String
getNtlmDomain()
java.lang.String
getNtlmHost()
java.lang.String
getPassword()
Get user's password used to login to proxy server.int
getPort()
Get the proxy port.java.lang.String
getProtocol()
Get the protocol of the proxy server.java.lang.String
getUserName()
Get the proxy username.void
setHost(java.lang.String host)
Set proxy host name.void
setNonProxyHosts(java.lang.String nonProxyHosts)
void
setNtlmDomain(java.lang.String ntlmDomain)
void
setNtlmHost(java.lang.String ntlmHost)
void
setPassword(java.lang.String password)
Set the user's password for the proxy server.void
setPort(int port)
Set the proxy port.void
setProtocol(java.lang.String protocol)
void
setUserName(java.lang.String userName)
Set the proxy username.
-
-
-
Field Detail
-
PROXY_SOCKS5
public static final java.lang.String PROXY_SOCKS5
- See Also:
- Constant Field Values
-
PROXY_SOCKS4
public static final java.lang.String PROXY_SOCKS4
- See Also:
- Constant Field Values
-
PROXY_HTTP
public static final java.lang.String PROXY_HTTP
- See Also:
- Constant Field Values
-
host
private java.lang.String host
Proxy server host
-
userName
private java.lang.String userName
Username used to access the proxy server
-
password
private java.lang.String password
Password associated with the proxy server
-
port
private int port
Proxy server port
-
protocol
private java.lang.String protocol
Type of the proxy
-
nonProxyHosts
private java.lang.String nonProxyHosts
The non-proxy hosts. Follows Java system property format:*.foo.com|localhost
.
-
ntlmHost
private java.lang.String ntlmHost
For NTLM proxies, specifies the NTLM host.
-
ntlmDomain
private java.lang.String ntlmDomain
For NTLM proxies, specifies the NTLM domain.
-
-
Method Detail
-
getHost
public java.lang.String getHost()
Return proxy server host name.- Returns:
- proxy server host name
-
setHost
public void setHost(java.lang.String host)
Set proxy host name.- Parameters:
host
- proxy server host name
-
getPassword
public java.lang.String getPassword()
Get user's password used to login to proxy server.- Returns:
- user's password at proxy host
-
setPassword
public void setPassword(java.lang.String password)
Set the user's password for the proxy server.- Parameters:
password
- password to use to login to a proxy server
-
getPort
public int getPort()
Get the proxy port.- Returns:
- proxy server port
-
setPort
public void setPort(int port)
Set the proxy port.- Parameters:
port
- proxy server port
-
getUserName
public java.lang.String getUserName()
Get the proxy username.- Returns:
- username for the proxy server
-
setUserName
public void setUserName(java.lang.String userName)
Set the proxy username.- Parameters:
userName
- username for the proxy server
-
getProtocol
public java.lang.String getProtocol()
Get the protocol of the proxy server.- Returns:
- the protocol of the proxy server
-
setProtocol
public void setProtocol(java.lang.String protocol)
- Parameters:
protocol
- the protocol of the proxy server like SOCKSv4
-
getNonProxyHosts
public java.lang.String getNonProxyHosts()
-
setNonProxyHosts
public void setNonProxyHosts(java.lang.String nonProxyHosts)
-
getNtlmHost
public java.lang.String getNtlmHost()
-
setNtlmHost
public void setNtlmHost(java.lang.String ntlmHost)
-
setNtlmDomain
public void setNtlmDomain(java.lang.String ntlmDomain)
-
getNtlmDomain
public java.lang.String getNtlmDomain()
-
-