getRedirectRequestBuilder
ScrapingRequest.Builder scrapeableFileEventData.getRedirectRequestBuilder ( )
Description
Returns the RedirectRequestBuilder for the object. Use this to add headers, etc... for the redirect. It can be null depending on the HTTP client being used, and whether or not it supports manually playing with the redirect.
Parameters
This method does not receive any parameters.
Return Values
Returns the RedirectRequestBuilder for the object.
Change Log
Version | Description |
---|---|
6.0.55a | Available for all editions. |
Examples
Get the Request Builder in order to modify it.
public Object handleEvent(EventFireTime fireTime, ScrapeableFileEventData data) {
ScrapingRequest.Builder builder = data.getRedirectRequestBuilder();
// do something
}
ScrapingRequest.Builder builder = data.getRedirectRequestBuilder();
// do something
}
samt on 03/10/2016 at 5:56 pm
- Printer-friendly version
- Login or register to post comments