- All Implemented Interfaces:
- org.apache.http.HttpResponseInterceptor
public class RedirectTrackingResponseInterceptor
extends Object
implements org.apache.http.HttpResponseInterceptor
RedirectTrackingResponseInterceptor tracks any redirects that occur during
retrieval of the target content. The final URL is set as a context attribute
on the HttpResponse for later retrieval. This interceptor ensures that
any relative URL calculations performed while processing the response are made
absolute using the correct final URL.
- Author:
- Jen Bourey, jennifer.bourey@gmail.com