public interface IRedirectURLProvider
Modifier and Type | Method and Description |
---|---|
String |
provideRedirectURL(org.apache.http.HttpRequest request,
org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context)
Provides the redirect URL that the crawler must follow.
|
String provideRedirectURL(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response, org.apache.http.protocol.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–2021 Norconex Inc.. All rights reserved.