-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
public final class ProxyContext implements AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classProxyContext.Companion
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisEnabledprivate final BooleanisActiveprivate ProxyEntryproxyEntry
-
Constructor Summary
Constructors Constructor Description ProxyContext(ProxyEntry proxyEntry, ProxyPoolManager proxyPoolManager, WebDriverContext driverContext, ImmutableConfig conf)
-
Method Summary
Modifier and Type Method Description final BooleangetIsEnabled()final BooleangetIsActive()final ProxyEntrygetProxyEntry()final UnitsetProxyEntry(ProxyEntry proxyEntry)final FetchResultrun(FetchTask task, SuspendFunction2<FetchTask, WebDriver, FetchResult> browseFun)Unitclose()Block until the proxy is offline -
-
Constructor Detail
-
ProxyContext
ProxyContext(ProxyEntry proxyEntry, ProxyPoolManager proxyPoolManager, WebDriverContext driverContext, ImmutableConfig conf)
-
-
Method Detail
-
getIsEnabled
final Boolean getIsEnabled()
-
getIsActive
final Boolean getIsActive()
-
getProxyEntry
final ProxyEntry getProxyEntry()
-
setProxyEntry
final Unit setProxyEntry(ProxyEntry proxyEntry)
-
run
final FetchResult run(FetchTask task, SuspendFunction2<FetchTask, WebDriver, FetchResult> browseFun)
-
close
Unit close()
Block until the proxy is offline
-
-
-
-