org.apache.maven.wagon.proxy

Class ProxyInfo

public class ProxyInfo extends Object implements Serializable

Conatins set of properties used by Wagon objects while connection to the repository must go thru a proxy server.

Version: $Id: ProxyInfo.java 162476 2005-04-19 02:49:45Z brett $

Author: Michal Maczka

UNKNOWN: Propose standard types of proxy servers (e.g. SOCKSv4), which can be shared between wagon api and providers

Field Summary
Stringhost
Proxy server host
StringnonProxyHosts
The non-proxy hosts.
StringntlmDomain
For NTLM proxies, specifies the NTLM domain.
StringntlmHost
For NTLM proxies, specifies the NTLM host.
Stringpassword
Password associated with the proxy server
intport
Proxy server port
static StringPROXY_HTTP
static StringPROXY_SOCKS4
static StringPROXY_SOCKS5
Stringtype
Type of the proxy
StringuserName
Username used to access the proxy server
Method Summary
StringgetHost()
Return proxy server host name.
StringgetNonProxyHosts()
StringgetNtlmDomain()
StringgetNtlmHost()
StringgetPassword()
Get user's password used to login to proxy server.
intgetPort()
Get the proxy port.
StringgetType()
Get the type of the proxy server.
StringgetUserName()
Get the proxy username.
voidsetHost(String host)
Set proxy host name.
voidsetNonProxyHosts(String nonProxyHosts)
voidsetNtlmDomain(String ntlmDomain)
voidsetNtlmHost(String ntlmHost)
voidsetPassword(String password)
Set the user's password for the proxy server.
voidsetPort(int port)
Set the proxy port.
voidsetType(String type)
voidsetUserName(String userName)
Set the proxy username.

Field Detail

host

private String host
Proxy server host

nonProxyHosts

private String nonProxyHosts
The non-proxy hosts. Follows Java system property format: *.foo.com|localhost.

ntlmDomain

private String ntlmDomain
For NTLM proxies, specifies the NTLM domain.

ntlmHost

private String ntlmHost
For NTLM proxies, specifies the NTLM host.

password

private String password
Password associated with the proxy server

port

private int port
Proxy server port

PROXY_HTTP

public static final String PROXY_HTTP

PROXY_SOCKS4

public static final String PROXY_SOCKS4

PROXY_SOCKS5

public static final String PROXY_SOCKS5

type

private String type
Type of the proxy

userName

private String userName
Username used to access the proxy server

Method Detail

getHost

public String getHost()
Return proxy server host name.

Returns: proxy server host name

getNonProxyHosts

public String getNonProxyHosts()

getNtlmDomain

public String getNtlmDomain()

getNtlmHost

public String getNtlmHost()

getPassword

public String getPassword()
Get user's password used to login to proxy server.

Returns: user's password at proxy host

getPort

public int getPort()
Get the proxy port.

Returns: proxy server port

getType

public String getType()
Get the type of the proxy server.

Returns: the type of the proxy server

getUserName

public String getUserName()
Get the proxy username.

Returns: username for the proxy server

setHost

public void setHost(String host)
Set proxy host name.

Parameters: host proxy server host name

setNonProxyHosts

public void setNonProxyHosts(String nonProxyHosts)

setNtlmDomain

public void setNtlmDomain(String ntlmDomain)

setNtlmHost

public void setNtlmHost(String ntlmHost)

setPassword

public void setPassword(String password)
Set the user's password for the proxy server.

Parameters: password password to use to login to a proxy server

setPort

public void setPort(int port)
Set the proxy port.

Parameters: port proxy server port

setType

public void setType(String type)

Parameters: type the type of the proxy server like SOCKSv4

setUserName

public void setUserName(String userName)
Set the proxy username.

Parameters: userName username for the proxy server