-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.config.Parameterized,java.lang.AutoCloseable
public final class DefaultBrowserEmulator extends BrowserEmulator
-
-
Field Summary
Fields Modifier and Type Field Description private final MeternumDeferredNavigatesprivate SuspendFunction2<InteractTask, InteractResult, Unit>scrollDownPolicyprivate final WebDriverPoolManagerdriverPoolManagerprivate final BooleansupportAllCharsetsprivate final PatterncharsetPatternprivate final AtomicBooleanclosedprivate final BooleanisActiveprivate final MetermeterNavigatesprivate final CountercounterRequestsprivate final CountercounterJsEvaluatesprivate final CountercounterJsWaitsprivate final CountercounterCancelsprivate final WebDriverSettingsdriverSettingsprivate final BrowserResponseHandlerresponseHandlerprivate final ImmutableConfigimmutableConfig
-
Constructor Summary
Constructors Constructor Description DefaultBrowserEmulator(WebDriverPoolManager driverPoolManager, ImmutableConfig conf)
-
Method Summary
Modifier and Type Method Description final MetergetNumDeferredNavigates()final SuspendFunction2<InteractTask, InteractResult, Unit>getScrollDownPolicy()final UnitsetScrollDownPolicy(SuspendFunction2<InteractTask, InteractResult, Unit> scrollDownPolicy)final WebDriverPoolManagergetDriverPoolManager()final BooleangetSupportAllCharsets()final PatterngetCharsetPattern()final AtomicBooleangetClosed()final BooleangetIsActive()final MetergetMeterNavigates()final CountergetCounterRequests()final CountergetCounterJsEvaluates()final CountergetCounterJsWaits()final CountergetCounterCancels()final WebDriverSettingsgetDriverSettings()final BrowserResponseHandlergetResponseHandler()Handle the response final ImmutableConfiggetImmutableConfig()-
Methods inherited from class ai.platon.pulsar.protocol.browser.emulator.DefaultBrowserEmulator
cancel, cancelNow, fetch, jsScrollDown -
Methods inherited from class ai.platon.pulsar.protocol.browser.emulator.BrowserEmulator
close, createResponse, createResponseWithDatum, getParams, logBeforeNavigate -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
DefaultBrowserEmulator
DefaultBrowserEmulator(WebDriverPoolManager driverPoolManager, ImmutableConfig conf)
-
-
Method Detail
-
getNumDeferredNavigates
final Meter getNumDeferredNavigates()
-
getScrollDownPolicy
final SuspendFunction2<InteractTask, InteractResult, Unit> getScrollDownPolicy()
-
setScrollDownPolicy
final Unit setScrollDownPolicy(SuspendFunction2<InteractTask, InteractResult, Unit> scrollDownPolicy)
-
getDriverPoolManager
final WebDriverPoolManager getDriverPoolManager()
-
getSupportAllCharsets
final Boolean getSupportAllCharsets()
-
getCharsetPattern
final Pattern getCharsetPattern()
-
getClosed
final AtomicBoolean getClosed()
-
getIsActive
final Boolean getIsActive()
-
getMeterNavigates
final Meter getMeterNavigates()
-
getCounterRequests
final Counter getCounterRequests()
-
getCounterJsEvaluates
final Counter getCounterJsEvaluates()
-
getCounterJsWaits
final Counter getCounterJsWaits()
-
getCounterCancels
final Counter getCounterCancels()
-
getDriverSettings
final WebDriverSettings getDriverSettings()
-
getResponseHandler
final BrowserResponseHandler getResponseHandler()
Handle the response
-
getImmutableConfig
final ImmutableConfig getImmutableConfig()
-
-
-
-