public class OperaProxy extends Object
Proxy instead.| Modifier and Type | Class and Description |
|---|---|
protected static class |
OperaProxy.ProxyToPreference |
| Constructor and Description |
|---|
OperaProxy(OperaDriver parent) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAutoconfigUrl()
Get the URL of the automatic proxy configuration file.
|
String |
getFtpProxy()
Gets the FTP proxy.
|
String |
getHttpProxy()
Gets the HTTP proxy.
|
String |
getHttpsProxy()
Gets the HTTPS proxy.
|
String |
getSocksPassword()
Gets the SOCKS proxy's password.
|
String |
getSocksProxy()
Gets the SOCKS proxy.
|
String |
getSocksUsername()
Gets the SOCKS proxy's username.
|
boolean |
isEnabled()
Whether proxy is enabled.
|
boolean |
isProxyLocal()
Whether to proxy local resources.
|
boolean |
isUsePAC()
Whether this proxy uses PAC, short for Proxy Auto Configuration.
|
void |
parse(org.openqa.selenium.Proxy proxy)
Parse an instance of
Proxy, merge and apply its configuration to the current Opera
instance. |
protected void |
reset() |
void |
setAutoconfigUrl(String url)
Specify the automatic proxy configuration file as a URL.
|
void |
setEnabled(boolean enabled)
Enable or disable proxy.
|
void |
setFtpProxy(String host)
Specify which proxy to use for FTP connections.
|
void |
setHttpProxy(String host)
Specify which proxy to use for HTTP connections.
|
void |
setHttpsProxy(String host)
Specify which proxy to use for HTTPS connections.
|
void |
setProxyLocal(boolean proxyLocalServers)
Enable or disable proxy of local resources.
|
void |
setSocksPassword(String password)
Specifies a password for the SOCKS proxy.
|
void |
setSocksProxy(String host)
Specifies which proxy to use for SOCKS.
|
void |
setSocksUsername(String username)
Specifies a username for the SOCKS proxy.
|
void |
setUsePAC(boolean enabled)
Enable or disable PAC, short for Proxy Auto Configuration.
|
public OperaProxy(OperaDriver parent)
public String getHttpProxy()
public void setHttpProxy(String host)
host - the proxy host, expected format is hostname:1234public String getHttpsProxy()
public void setHttpsProxy(String host)
host - the proxy host, expected format is hostname:1234public String getFtpProxy()
public void setFtpProxy(String host)
host - the proxy host, expected format is hostname:1234public String getSocksProxy()
public void setSocksProxy(String host)
OperaDriver.host - the proxy host, expected format is hostname.com:1234public String getSocksUsername()
public void setSocksUsername(String username)
username - username for the SOCKS proxypublic String getSocksPassword()
public void setSocksPassword(String password)
password - password for the SOCKS proxypublic boolean isProxyLocal()
public void setProxyLocal(boolean proxyLocalServers)
proxyLocalServers - true to enable of proxy local resources, false to disablepublic String getAutoconfigUrl()
public void setAutoconfigUrl(String url)
url - url to the automatic proxy configuration filepublic boolean isUsePAC()
public void setUsePAC(boolean enabled)
enabled - set to true to enable, false to disablepublic boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - set to true to enable, false to disablepublic void parse(org.openqa.selenium.Proxy proxy)
Proxy, merge and apply its configuration to the current Opera
instance.protected void reset()
Copyright © 2012. All Rights Reserved.