public class BrowsermobProxyUtilsImpl extends java.lang.Object implements LocalProxyUtils<net.lightbody.bmp.BrowserMobProxy>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INVALID_REQUESTS
This is the name of the key that will be saved in ProxyDetails properties
that keeps track of any error responses that have been passed through the
proxy.
|
static java.lang.String |
PROXY_NAME |
Constructor and Description |
---|
BrowsermobProxyUtilsImpl() |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<ProxyDetails<net.lightbody.bmp.BrowserMobProxy>> |
initProxy(java.util.List<java.io.File> globalTempFiles,
java.util.List<java.io.File> tempFolders,
java.util.Optional<ProxySettings> upstreamProxy)
Attempts to match the value assigned to the startInternalProxy system property with a
supported internal proxy, and starts it if a match was found.
|
public static final java.lang.String PROXY_NAME
public static final java.lang.String INVALID_REQUESTS
public java.util.Optional<ProxyDetails<net.lightbody.bmp.BrowserMobProxy>> initProxy(@NotNull java.util.List<java.io.File> globalTempFiles, @NotNull java.util.List<java.io.File> tempFolders, @NotNull java.util.Optional<ProxySettings> upstreamProxy)
LocalProxyUtils
initProxy
in interface LocalProxyUtils<net.lightbody.bmp.BrowserMobProxy>
globalTempFiles
- Tempoarry files to be cleaned up once Iridium is closedtempFolders
- A collection that will be populate with any temporary folders to be cleaned up once the
test has completedupstreamProxy
- The details of the upstream proxy