org.codehaus.cargo.maven2.configuration
Class Proxy

java.lang.Object
  extended by org.codehaus.cargo.maven2.configuration.Proxy

public class Proxy
extends java.lang.Object

Holds configuration data for the <proxy> tag used to configure the plugin in the pom.xml file. Note: To be removed once m2 supports configuring custom config POJOs. See MNG-1353

Version:
$Id: Proxy.java 1235 2006-11-26 10:07:43Z vmassol $

Constructor Summary
Proxy()
           
 
Method Summary
 void clear()
          Clear all proxy settings.
 void configure()
          Set the Java system properties related to proxies.
 java.lang.String getExcludeHosts()
           
 java.lang.String getHost()
           
 java.lang.String getPassword()
           
 int getPort()
           
 java.lang.String getUser()
           
 void setExcludeHosts(java.lang.String proxyExcludeHosts)
          List of hosts which should be connected too directly and not through the proxy server.
 void setHost(java.lang.String host)
           
 void setPassword(java.lang.String password)
           
 void setPort(int port)
           
 void setUser(java.lang.String user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Proxy

public Proxy()
Method Detail

setHost

public final void setHost(java.lang.String host)
Parameters:
host - the proxy host

getHost

public final java.lang.String getHost()
See Also:
setHost(String)

setPort

public final void setPort(int port)
Parameters:
port - the proxy port. Default to 80 if not set

getPort

public final int getPort()
See Also:
setPort(int)

setUser

public final void setUser(java.lang.String user)
Parameters:
user - the user for authenticating proxies

getUser

public final java.lang.String getUser()
See Also:
setUser(String)

setPassword

public final void setPassword(java.lang.String password)
Parameters:
password - the password for authenticating proxies

getPassword

public final java.lang.String getPassword()
See Also:
setPassword(String)

setExcludeHosts

public final void setExcludeHosts(java.lang.String proxyExcludeHosts)
List of hosts which should be connected too directly and not through the proxy server. The value can be a list of hosts, each seperated by a |, and in addition a wildcard character (*) can be used for matching. For example: -Dhttp.nonProxyHosts="*.foo.com|localhost".

Parameters:
proxyExcludeHosts - list of hosts that do not go through the proxy

getExcludeHosts

public final java.lang.String getExcludeHosts()
See Also:
setExcludeHosts(String)

configure

public void configure()
Set the Java system properties related to proxies.


clear

public void clear()
Clear all proxy settings.



Copyright © 2004-2009 Codehaus. All Rights Reserved.