Class BoxFetcher
java.lang.Object
com.norconex.crawler.core.fetch.AbstractFetcher<BoxFetcherConfig>
com.norconex.crawler.fs.fetch.impl.box.BoxFetcher
- All Implemented Interfaces:
Configurable<BoxFetcherConfig>,EventListener<Event>,Fetcher,EventListener,Consumer<Event>
Box API fetcher.
-
Field Summary
Fields inherited from interface com.norconex.commons.lang.config.Configurable
PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanacceptRequest(@NonNull FetchRequest fetchRequest) Optional method for subclasses to override when in need for additional acceptance logic beyond reference filters (which this abstract class provides).protected booleanbooleanfetch(FetchRequest fetchRequest) inthashCode()toString()Methods inherited from class com.norconex.crawler.core.fetch.AbstractFetcher
accept, accept, fetcherShutdown, fetcherStartup
-
Constructor Details
-
BoxFetcher
public BoxFetcher()
-
-
Method Details
-
acceptRequest
Description copied from class:AbstractFetcherOptional method for subclasses to override when in need for additional acceptance logic beyond reference filters (which this abstract class provides). This method is only invoked if there are no reference filters configured on this class, or all of them accepts the request document. Default implementation does nothing (always returntrue).- Overrides:
acceptRequestin classAbstractFetcher<BoxFetcherConfig>- Parameters:
fetchRequest- the fetch request to evaluate (nevernull)- Returns:
trueif accepted
-
fetch
- Throws:
FetchException
-
toString
- Overrides:
toStringin classAbstractFetcher<BoxFetcherConfig>
-
equals
- Overrides:
equalsin classAbstractFetcher<BoxFetcherConfig>
-
canEqual
- Overrides:
canEqualin classAbstractFetcher<BoxFetcherConfig>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractFetcher<BoxFetcherConfig>
-
getConfiguration
-