org.ferris.net.runner
Class LaxRedirectStrategy

java.lang.Object
  extended by org.apache.http.impl.client.DefaultRedirectStrategy
      extended by org.ferris.net.runner.LaxRedirectStrategy
All Implemented Interfaces:
org.apache.http.client.RedirectStrategy

@Immutable
public class LaxRedirectStrategy
extends org.apache.http.impl.client.DefaultRedirectStrategy

Lax RedirectStrategy implementation that automatically redirects all HEAD, GET and POST requests. This strategy relaxes restrictions on automatic redirection of POST methods imposed by the HTTP specification.

Since:
4.2

Field Summary
 
Fields inherited from class org.apache.http.impl.client.DefaultRedirectStrategy
REDIRECT_LOCATIONS
 
Constructor Summary
LaxRedirectStrategy()
           
 
Method Summary
 boolean isRedirected(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
           
 
Methods inherited from class org.apache.http.impl.client.DefaultRedirectStrategy
createLocationURI, getLocationURI, getRedirect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LaxRedirectStrategy

public LaxRedirectStrategy()
Method Detail

isRedirected

public boolean isRedirected(org.apache.http.HttpRequest request,
                            org.apache.http.HttpResponse response,
                            org.apache.http.protocol.HttpContext context)
                     throws org.apache.http.ProtocolException
Specified by:
isRedirected in interface org.apache.http.client.RedirectStrategy
Overrides:
isRedirected in class org.apache.http.impl.client.DefaultRedirectStrategy
Throws:
org.apache.http.ProtocolException


Copyright © Jun 11, 2009-2011 The Ferris Foundation. All Rights Reserved.