public class ScrapeableFileEventData extends AbstractEventData
Constructor and Description |
---|
ScrapeableFileEventData(ScrapingSession session,
ScrapeableFile scrapeableFile,
java.lang.String redirectToURL,
java.lang.String httpResponseData,
ScrapingRequest.Builder redirectRequestBuilder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHttpResponseData()
Returns the response string after a request (null if this event doesn't deal with the response, or if the request totally failed)
|
ScrapingRequest.Builder |
getRedirectRequestBuilder()
Returns the RedirectRequestBuilder for the object.
|
java.lang.String |
getRedirectToURL()
Returns the URL that will be redirected to (if the event happens during a redirect), null otherwise
|
ScrapeableFile |
getScrapeableFile()
Returns the current scrapeable file on which the event was triggered
|
ScrapingSession |
getSession()
Returns the current scraping session on which the event was triggered
|
java.lang.String |
toString() |
getLastReturnValue, setLastReturnValue
ScrapeableFileEventData(@NotNull ScrapingSession session, @NotNull ScrapeableFile scrapeableFile, @Nullable java.lang.String redirectToURL, @Nullable java.lang.String httpResponseData, @Nullable ScrapingRequest.Builder redirectRequestBuilder)
@NotNull public ScrapingSession getSession()
@NotNull public ScrapeableFile getScrapeableFile()
@Nullable public java.lang.String getRedirectToURL()
@Nullable public ScrapingRequest.Builder getRedirectRequestBuilder()
@Nullable public java.lang.String getHttpResponseData()
@NotNull public java.lang.String toString()
toString
in class java.util.EventObject