RedirectHandlers

public class RedirectHandlers


Utility class for standard RedirectHandler implementations.

Summary

Public methods

static RedirectHandler

Returns a redirect handler that always follows redirects.

static RedirectHandler

Returns a redirect handler that never follows redirects.

Public methods

alwaysFollow

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.

neverFollow

public static RedirectHandler neverFollow()

Returns a redirect handler that never follows redirects.