org.codehaus.cargo.container.installer
Class Proxy

java.lang.Object
  extended by org.codehaus.cargo.util.log.LoggedObject
      extended by org.codehaus.cargo.container.installer.Proxy
All Implemented Interfaces:
org.codehaus.cargo.util.log.Loggable

public class Proxy
extends org.codehaus.cargo.util.log.LoggedObject

Nested Ant element to specify proxy properties.

Version:
$Id: Proxy.java 971 2006-03-27 13:37:28Z 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 org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
 
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()
Returns:
the proxy host

setPort

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

getPort

public final int getPort()
Returns:
the proxy port or 80 if not set

setUser

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

getUser

public final java.lang.String getUser()
Returns:
the user for authenticating proxies

setPassword

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

getPassword

public final java.lang.String getPassword()
Returns:
the password for authenticating proxies

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()
Returns:
the list of hosts which should be connected too directly and not through the proxy server
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-2010 Codehaus. All Rights Reserved.