org.apache.maven.wagon.proxy

Class ProxyInfo

Implemented Interfaces:
Serializable

public class ProxyInfo
extends java.lang.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

Field Summary

static String
PROXY_HTTP
static String
PROXY_SOCKS4
static String
PROXY_SOCKS5

Method Summary

String
getHost()
Return proxy server host name.
String
getNonProxyHosts()
String
getNtlmDomain()
String
getNtlmHost()
String
getPassword()
Get user's password used to login to proxy server.
int
getPort()
Get the proxy port.
String
getType()
Get the type of the proxy server.
String
getUserName()
Get the proxy username.
void
setHost(String host)
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
setType(String type)
void
setUserName(String userName)
Set the proxy username.

Field Details

PROXY_HTTP

public static final String PROXY_HTTP

PROXY_SOCKS4

public static final String PROXY_SOCKS4

PROXY_SOCKS5

public static final String PROXY_SOCKS5

Method Details

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