Class PrivacyManagedBrowserFetcher

  • All Implemented Interfaces:
    ai.platon.pulsar.protocol.browser.emulator.IncognitoBrowserFetcher , ai.platon.pulsar.skeleton.workflow.fetch.BrowserFetcher , ai.platon.pulsar.skeleton.workflow.fetch.Fetcher , java.lang.AutoCloseable

    
    public class PrivacyManagedBrowserFetcher
    extends AbstractBrowserFetcher implements IncognitoBrowserFetcher
                        

    Created by Vincent on 18-1-1. Copyright @ 2013-2023 Platon AI. All rights reserved

    • Constructor Detail

      • PrivacyManagedBrowserFetcher

        PrivacyManagedBrowserFetcher(BrowserManager browserManager, PrivacyManager privacyManager, BrowserEmulator browserEmulator, ImmutableConfig conf, Boolean closeCascaded)
    • Method Detail

      • getConf

         ImmutableConfig getConf()
      • fetchDeferred

         final Response fetchDeferred(FetchTask task)

        Fetches the content of a web page asynchronously using the provided fetch task.

        This method attempts to retrieve a web driver for the given page. If a specific driver is found, it is used to fetch the page content. Otherwise, the task is executed within a privacy context using the PrivacyManager to obtain a driver.

        Parameters:
        task - The fetch task containing the details of the page to be fetched.
        Returns:

        A Response object containing the result of the fetch operation.