public class ProxyConfig extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ProxyConfig.Type
The proxy type.
|
Constructor and Description |
---|
ProxyConfig()
Creates a direct connection (no proxy).
|
ProxyConfig(ProxyConfig.Type type,
String host,
int port)
Creates a proxy.
|
ProxyConfig(ProxyConfig.Type type,
String host,
int port,
String user,
String password)
Creates a proxy.
|
ProxyConfig(ProxyConfig.Type type,
String host,
int port,
String user,
String password,
boolean expectContinue)
Creates a proxy.
|
ProxyConfig(ProxyConfig.Type type,
String host,
int port,
String user,
String password,
boolean expectContinue,
Set<String> nonProxyHosts)
Creates a proxy.
|
public ProxyConfig()
public ProxyConfig(ProxyConfig.Type type, String host, int port)
type
- host
- port
- public ProxyConfig(ProxyConfig.Type type, String host, int port, String user, String password)
type
- host
- port
- user
- password
- public ProxyConfig(ProxyConfig.Type type, String host, int port, String user, String password, boolean expectContinue)
type
- host
- port
- user
- password
- expectContinue
- Whether the proxy uses "Expect: 100-Continue" functionalitypublic ProxyConfig(ProxyConfig.Type type, String host, int port, String user, String password, boolean expectContinue, Set<String> nonProxyHosts)
type
- host
- port
- user
- password
- expectContinue
- Whether the proxy uses "Expect: 100-Continue" functionalitynonProxyHosts
- Set of hosts that should be reached directly, bypassing the proxy.Copyright © 2014-2017 Machine Publishers, LLC and the jBrowserDriver contributors.
Project homepage: https://github.com/machinepublishers/jbrowserdriver