Class AbstractBrowserFactory
-
- All Implemented Interfaces:
-
ai.platon.pulsar.skeleton.browser.BrowserFactory
public abstract class AbstractBrowserFactory implements BrowserFactory
-
-
Constructor Summary
Constructors Constructor Description AbstractBrowserFactory(ImmutableConfig conf, BrowserSettings settings)
-
Method Summary
Modifier and Type Method Description ImmutableConfiggetConf()BrowserSettingsgetSettings()Browserlaunch(BrowserProfileMode profileMode)Browserlaunch(BrowserId browserId)Launch a browser with the given browser id, the browser id is used to identify the browser instance. Browserlaunch(BrowserId browserId, BrowserSettings settings)Launch the system default browser, the system default browser is your daily used browser. BrowserlaunchSystemDefaultBrowser()Launch the system default browser, the system default browser is your daily used browser. BrowserlaunchDefaultBrowser()Launch the default browser, notice, the default browser is not the one you used daily. BrowserlaunchPrototypeBrowser()Launch the prototype browser, the prototype browser is a browser instance with default settings. BrowserlaunchNextSequentialBrowser()Launch the next sequential browser, the browser's user data dir rotates between a group of dirs. BrowserlaunchRandomTempBrowser()Launch a random temporary browser, the browser's user data dir is a random temporary dir. -
-
Method Detail
-
getConf
ImmutableConfig getConf()
-
getSettings
BrowserSettings getSettings()
-
launch
Browser launch(BrowserProfileMode profileMode)
-
launch
Browser launch(BrowserId browserId)
Launch a browser with the given browser id, the browser id is used to identify the browser instance.
-
launch
Browser launch(BrowserId browserId, BrowserSettings settings)
Launch the system default browser, the system default browser is your daily used browser.
-
launchSystemDefaultBrowser
Browser launchSystemDefaultBrowser()
Launch the system default browser, the system default browser is your daily used browser.
-
launchDefaultBrowser
Browser launchDefaultBrowser()
Launch the default browser, notice, the default browser is not the one you used daily.
-
launchPrototypeBrowser
Browser launchPrototypeBrowser()
Launch the prototype browser, the prototype browser is a browser instance with default settings.
-
launchNextSequentialBrowser
Browser launchNextSequentialBrowser()
Launch the next sequential browser, the browser's user data dir rotates between a group of dirs.
-
launchRandomTempBrowser
Browser launchRandomTempBrowser()
Launch a random temporary browser, the browser's user data dir is a random temporary dir.
-
-
-
-