Class AbstractBrowserFetcher
-
- All Implemented Interfaces:
-
ai.platon.pulsar.skeleton.workflow.fetch.BrowserFetcher,ai.platon.pulsar.skeleton.workflow.fetch.Fetcher,java.lang.AutoCloseable
public abstract class AbstractBrowserFetcher implements BrowserFetcher, Fetcher
Created by Vincent on 18-1-1. Copyright @ 2013-2023 Platon AI. All rights reserved
-
-
Constructor Summary
Constructors Constructor Description AbstractBrowserFetcher()
-
Method Summary
Modifier and Type Method Description abstract BooleanisActive()ResponsefetchContent(WebPage page)Fetch page content ResponsefetchDeferred(String url)Fetch a url. ResponsefetchDeferred(String url, VolatileConfig volatileConfig)Fetch a url. abstract ResponsefetchContentDeferred(WebPage page)Fetch page content -
Methods inherited from class ai.platon.pulsar.skeleton.workflow.fetch.BrowserFetcher
cancel, cancelAll, getConf, reset -
Methods inherited from class java.lang.AutoCloseable
close -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
fetchContent
Response fetchContent(WebPage page)
Fetch page content
- Parameters:
page- the page to fetch
-
fetchDeferred
Response fetchDeferred(String url)
Fetch a url.
- Parameters:
url- the url to fetch- Returns:
the response
-
fetchDeferred
Response fetchDeferred(String url, VolatileConfig volatileConfig)
Fetch a url.
- Parameters:
url- the url to fetch- Returns:
the response
-
fetchContentDeferred
abstract Response fetchContentDeferred(WebPage page)
Fetch page content
- Parameters:
page- the page to fetch
-
-
-
-