Package org.apache.maven.wagon.proxy
Class ProxyInfo
java.lang.Object
org.apache.maven.wagon.proxy.ProxyInfo
- All Implemented Interfaces:
Serializable
Contains set of properties used by
Wagon
objects
while connection to the repository must go thru a proxy server.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
Proxy server hostprivate String
The non-proxy hosts.private String
For NTLM proxies, specifies the NTLM domain.private String
For NTLM proxies, specifies the NTLM host.private String
Password associated with the proxy serverprivate int
Proxy server portstatic final String
static final String
static final String
private String
Type of the proxyprivate String
Username used to access the proxy server -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHost()
Return proxy server host name.Get user's password used to login to proxy server.int
getPort()
Get the proxy port.getType()
Get the type of the proxy server.Get the proxy username.void
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
void
setUserName
(String userName) Set the proxy username.toString()
-
Field Details
-
PROXY_SOCKS5
- See Also:
-
PROXY_SOCKS4
- See Also:
-
PROXY_HTTP
- See Also:
-
host
Proxy server host -
userName
Username used to access the proxy server -
password
Password associated with the proxy server -
port
private int portProxy server port -
type
Type of the proxy -
nonProxyHosts
The non-proxy hosts. Follows Java system property format:*.foo.com|localhost
. -
ntlmHost
For NTLM proxies, specifies the NTLM host. -
ntlmDomain
For NTLM proxies, specifies the NTLM domain.
-
-
Constructor Details
-
ProxyInfo
public ProxyInfo()
-
-
Method Details
-
getHost
Return proxy server host name.- Returns:
- proxy server host name
-
setHost
Set proxy host name.- Parameters:
host
- proxy server host name
-
getPassword
Get user's password used to login to proxy server.- Returns:
- user's password at proxy host
-
setPassword
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
Get the proxy username.- Returns:
- username for the proxy server
-
setUserName
Set the proxy username.- Parameters:
userName
- username for the proxy server
-
getType
Get the type of the proxy server.- Returns:
- the type of the proxy server
-
setType
- Parameters:
type
- the type of the proxy server like SOCKSv4
-
getNonProxyHosts
-
setNonProxyHosts
-
getNtlmHost
-
setNtlmHost
-
setNtlmDomain
-
getNtlmDomain
-
toString
-