public interface IRedirectURLProvider
| Modifier and Type | Method and Description |
|---|---|
String |
provideRedirectURL(HttpRequest request,
HttpResponse response,
HttpContext context)
Provides the redirect URL that the crawler must follow.
|
String provideRedirectURL(HttpRequest request, HttpResponse response, HttpContext context)
null. Returning null effectively
prevents a redirect from happening, but it is an efficient way to
disable redirects. The recommended approach to disable redirects is to
set zero on GenericHttpClientFactory.setMaxRedirects(int)request - the HTTP request that led to the redirectresponse - original URL HTTP responsecontext - execution state of an HTTP processCopyright © 2009–2020 Norconex Inc.. All rights reserved.