RedirectHandlers

public class RedirectHandlers extends Object

Utility class for standard RedirectHandler implementations. *

Public Method Summary

static RedirectHandler
alwaysFollow()
Returns a redirect handler that always follows redirects.
static RedirectHandler
neverFollow()
Returns a redirect handler that never follows redirects.

Inherited Method Summary

Public Methods

public static RedirectHandler alwaysFollow ()

Returns a redirect handler that always follows redirects.

Note that the maximum number of redirects to follow is still limited internally to prevent infinite looping.

public static RedirectHandler neverFollow ()

Returns a redirect handler that never follows redirects.