public class ClientUtil
extends java.lang.Object
| Constructor and Description |
|---|
ClientUtil() |
| Modifier and Type | Method and Description |
|---|---|
static AdvancedHostResolver |
createDnsJavaResolver()
Deprecated.
The dnsjava resolver has been deprecated in favor of the standard JVM resolver and will be removed in BUP >2.1.
|
static AdvancedHostResolver |
createDnsJavaWithNativeFallbackResolver()
Deprecated.
The dnsjava resolver has been deprecated in favor of the standard JVM resolver and will be removed in BUP >2.1.
|
static AdvancedHostResolver |
createNativeCacheManipulatingResolver()
Creates a
NativeCacheManipulatingResolver instance that can be used when
calling BrowserUpProxy.setHostNameResolver(com.browserup.bup.proxy.dns.AdvancedHostResolver). |
static AdvancedHostResolver |
createNativeResolver()
Creates a
NativeResolver instance that does not support cache manipulation that can be used when
calling BrowserUpProxy.setHostNameResolver(com.browserup.bup.proxy.dns.AdvancedHostResolver). |
static org.openqa.selenium.Proxy |
createSeleniumProxy(BrowserUpProxy browserUpProxy)
Creates a Selenium Proxy object from the BrowserUpProxy instance.
|
static org.openqa.selenium.Proxy |
createSeleniumProxy(BrowserUpProxy browserUpProxy,
java.net.InetAddress connectableAddress)
Creates a Selenium Proxy object from the BrowserUpProxy instance, using the specified connectableAddress as the Selenium Proxy object's
proxy address.
|
static org.openqa.selenium.Proxy |
createSeleniumProxy(java.net.InetSocketAddress connectableAddressAndPort)
Creates a Selenium Proxy object using the specified connectableAddressAndPort as the HTTP proxy server.
|
static java.net.InetAddress |
getConnectableAddress()
Attempts to retrieve a "connectable" address for this device that other devices on the network can use to connect to a local proxy.
|
public static AdvancedHostResolver createNativeCacheManipulatingResolver()
NativeCacheManipulatingResolver instance that can be used when
calling BrowserUpProxy.setHostNameResolver(com.browserup.bup.proxy.dns.AdvancedHostResolver).public static AdvancedHostResolver createNativeResolver()
NativeResolver instance that does not support cache manipulation that can be used when
calling BrowserUpProxy.setHostNameResolver(com.browserup.bup.proxy.dns.AdvancedHostResolver).@Deprecated public static AdvancedHostResolver createDnsJavaResolver()
DnsJavaResolver instance that can be used when
calling BrowserUpProxy.setHostNameResolver(com.browserup.bup.proxy.dns.AdvancedHostResolver).@Deprecated public static AdvancedHostResolver createDnsJavaWithNativeFallbackResolver()
ChainedHostResolver instance that first attempts to resolve a hostname using a
DnsJavaResolver, then uses NativeCacheManipulatingResolver.
Can be used when calling BrowserUpProxy.setHostNameResolver(com.browserup.bup.proxy.dns.AdvancedHostResolver).public static org.openqa.selenium.Proxy createSeleniumProxy(BrowserUpProxy browserUpProxy)
getConnectableAddress().browserUpProxy - started BrowserUpProxy instance to read connection information fromjava.lang.IllegalStateException - if the proxy has not been started.public static org.openqa.selenium.Proxy createSeleniumProxy(BrowserUpProxy browserUpProxy, java.net.InetAddress connectableAddress)
BrowserUpProxy.getPort(). The BrowserUpProxy must be started.browserUpProxy - started BrowserUpProxy instance to read the port fromconnectableAddress - the network address the Selenium Proxy will use to reach this BrowserUpProxy instancejava.lang.IllegalStateException - if the proxy has not been started.public static org.openqa.selenium.Proxy createSeleniumProxy(java.net.InetSocketAddress connectableAddressAndPort)
connectableAddressAndPort - the network address (or hostname) and port the Selenium Proxy will use to reach its
proxy server (the InetSocketAddress may be unresolved).public static java.net.InetAddress getConnectableAddress()