org.openqa.selenium
Class Proxy

java.lang.Object
  extended by org.openqa.selenium.Proxy

public class Proxy
extends Object

Configuration parameters for using proxies in WebDriver.

Generally you should pass an object of this type to a WebDriver constructor, or in some cases to the profile object used in the WebDriver construction.

For simplicity, setting values here commits the proxy to a certain configuration. That is, it is an error to set an httpProxy manually and then turn on proxy autodetect.


Nested Class Summary
static class Proxy.ProxyType
           
 
Constructor Summary
Proxy()
           
Proxy(Map<String,?> raw)
           
 
Method Summary
 String getFtpProxy()
           
 String getHttpProxy()
           
 String getNoProxy()
           
 String getProxyAutoconfigUrl()
           
 Proxy.ProxyType getProxyType()
           
 String getSslProxy()
           
 boolean isAutodetect()
           
 Proxy setAutodetect(boolean autodetect)
           
 Proxy setFtpProxy(String ftpProxy)
           
 Proxy setHttpProxy(String httpProxy)
           
 Proxy setNoProxy(String noProxy)
           
 Proxy setProxyAutoconfigUrl(String proxyAutoconfigUrl)
           
 Proxy setProxyType(Proxy.ProxyType proxyType)
          Explicitly sets the proxy type, useful for forcing direct connection on Linux.
 Proxy setSslProxy(String sslProxy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Proxy

public Proxy()

Proxy

public Proxy(Map<String,?> raw)
Method Detail

getProxyType

public Proxy.ProxyType getProxyType()

setProxyType

public Proxy setProxyType(Proxy.ProxyType proxyType)
Explicitly sets the proxy type, useful for forcing direct connection on Linux.

Returns:

isAutodetect

public boolean isAutodetect()

setAutodetect

public Proxy setAutodetect(boolean autodetect)

getFtpProxy

public String getFtpProxy()

setFtpProxy

public Proxy setFtpProxy(String ftpProxy)

getHttpProxy

public String getHttpProxy()

setHttpProxy

public Proxy setHttpProxy(String httpProxy)

getNoProxy

public String getNoProxy()

setNoProxy

public Proxy setNoProxy(String noProxy)

getProxyAutoconfigUrl

public String getProxyAutoconfigUrl()

setProxyAutoconfigUrl

public Proxy setProxyAutoconfigUrl(String proxyAutoconfigUrl)

getSslProxy

public String getSslProxy()

setSslProxy

public Proxy setSslProxy(String sslProxy)


Copyright © 2011. All Rights Reserved.