org.openqa.selenium
Class Proxy
java.lang.Object
org.openqa.selenium.Proxy
public class Proxy
- extends java.lang.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.
Constructor Summary |
Proxy()
|
Proxy(java.util.Map<java.lang.String,?> raw)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Proxy
public Proxy()
Proxy
public Proxy(java.util.Map<java.lang.String,?> raw)
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 java.lang.String getFtpProxy()
setFtpProxy
public Proxy setFtpProxy(java.lang.String ftpProxy)
getHttpProxy
public java.lang.String getHttpProxy()
setHttpProxy
public Proxy setHttpProxy(java.lang.String httpProxy)
getNoProxy
public java.lang.String getNoProxy()
setNoProxy
public Proxy setNoProxy(java.lang.String noProxy)
getProxyAutoconfigUrl
public java.lang.String getProxyAutoconfigUrl()
setProxyAutoconfigUrl
public Proxy setProxyAutoconfigUrl(java.lang.String proxyAutoconfigUrl)
getSslProxy
public java.lang.String getSslProxy()
setSslProxy
public Proxy setSslProxy(java.lang.String sslProxy)
Copyright © 2011. All Rights Reserved.