Class AbstractBrowserFactory

  • All Implemented Interfaces:
    ai.platon.pulsar.browser.BrowserFactory

    
    public abstract class AbstractBrowserFactory
     implements BrowserFactory
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final ImmutableConfig conf
      private final BrowserSettings settings
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractBrowserFactory(ImmutableConfig conf, BrowserSettings settings)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      ImmutableConfig getConf()
      BrowserSettings getSettings()
      Browser launch(BrowserProfileMode profileMode)
      Browser launch(BrowserId browserId) Launch a browser with the given browser id, the browser id is used to identify the browser instance.
      Browser launch(BrowserId browserId, BrowserSettings settings) Launch the system default browser, the system default browser is your daily used browser.
      Browser launchSystemDefaultBrowser() Launch the system default browser, the system default browser is your daily used browser.
      Browser launchDefaultBrowser() Launch the default browser, notice, the default browser is not the one you used daily.
      Browser launchPrototypeBrowser() Launch the prototype browser, the prototype browser is a browser instance with default settings.
      Browser launchNextSequentialBrowser() Launch the next sequential browser, the browser's user data dir rotates between a group of dirs.
      Browser launchRandomTempBrowser() Launch a random temporary browser, the browser's user data dir is a random temporary dir.
      • Methods inherited from class ai.platon.pulsar.browser.BrowserFactory

        connect, launch
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractBrowserFactory

        AbstractBrowserFactory(ImmutableConfig conf, BrowserSettings settings)
    • Method Detail

      • getConf

         ImmutableConfig getConf()
      • 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.