public enum ScrapeableFileEventFireTime extends java.lang.Enum<ScrapeableFileEventFireTime> implements EventFireTime<ScrapeableFileEventData>
Enum Constant and Description |
---|
AfterHttpRequest
Fired right after getting the http response and running tidy, if set, but before anything else happens.
|
AfterScrapeableFile
After a scrapeable file is completed (including after any scripts on it run)
|
BeforeHttpRequest
Fired right before issuing the http request (after any "before scrapeable file" scripts, and will fire each time the request is retried).
|
BeforeScrapeableFile
Before a scrapeable file is launched (including before any scripts on it run)
|
BeforeScrapeFromString
Fired just before setting the content on a scrapeString request.
|
OnHttpRedirect
Called when a redirect will occur, and returns true if a redirect should occur or false if it should not (any non boolean results in no change)
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getDefaultReturnValue(ScrapeableFileEventData data)
Gets the default value to return for this time from the data
|
static ScrapeableFileEventFireTime |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScrapeableFileEventFireTime[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScrapeableFileEventFireTime BeforeScrapeableFile
public static final ScrapeableFileEventFireTime BeforeHttpRequest
public static final ScrapeableFileEventFireTime BeforeScrapeFromString
public static final ScrapeableFileEventFireTime AfterHttpRequest
public static final ScrapeableFileEventFireTime AfterScrapeableFile
public static final ScrapeableFileEventFireTime OnHttpRedirect
public static ScrapeableFileEventFireTime[] values()
for (ScrapeableFileEventFireTime c : ScrapeableFileEventFireTime.values()) System.out.println(c);
public static ScrapeableFileEventFireTime valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Nullable public java.lang.Object getDefaultReturnValue(ScrapeableFileEventData data)
getDefaultReturnValue
in interface EventFireTime<ScrapeableFileEventData>
data
- The default value to return