View Javadoc
1   package org.esigate.api;
2   
3   import java.net.URI;
4   
5   import org.apache.http.HttpRequest;
6   import org.apache.http.HttpResponse;
7   import org.apache.http.ProtocolException;
8   import org.apache.http.client.RedirectStrategy;
9   import org.apache.http.protocol.HttpContext;
10  
11  /**
12   * Interface for redirect strategies used by driver when retrieving content from providers.
13   * 
14   * <p>
15   * This interface is based on {@link RedirectStrategy} and expose one additional method :
16   * 
17   * @see RedirectStrategy2#getLocationURI(HttpRequest, HttpResponse, HttpContext)
18   * 
19   * @author Nicolas Richeton
20   * 
21   */
22  public interface RedirectStrategy2 extends RedirectStrategy {
23  
24      URI getLocationURI(final HttpRequest request, final HttpResponse response, final HttpContext context)
25              throws ProtocolException;
26  }