Enum RenderPageRequestHandler.RedirectPolicy
- java.lang.Object
-
- java.lang.Enum<RenderPageRequestHandler.RedirectPolicy>
-
- org.apache.wicket.core.request.handler.RenderPageRequestHandler.RedirectPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<RenderPageRequestHandler.RedirectPolicy>
- Enclosing class:
- RenderPageRequestHandler
public static enum RenderPageRequestHandler.RedirectPolicy extends Enum<RenderPageRequestHandler.RedirectPolicy>
Determines whether Wicket does a redirect when rendering a page- Author:
- Matej Knopp
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYS_REDIRECT
Always redirect if current request URL is different than page URL.AUTO_REDIRECT
Redirect if necessary.NEVER_REDIRECT
Never redirect - always render the page to current response.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RenderPageRequestHandler.RedirectPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static RenderPageRequestHandler.RedirectPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALWAYS_REDIRECT
public static final RenderPageRequestHandler.RedirectPolicy ALWAYS_REDIRECT
Always redirect if current request URL is different than page URL.
-
NEVER_REDIRECT
public static final RenderPageRequestHandler.RedirectPolicy NEVER_REDIRECT
Never redirect - always render the page to current response.
-
AUTO_REDIRECT
public static final RenderPageRequestHandler.RedirectPolicy AUTO_REDIRECT
Redirect if necessary. The redirect will happen when all of the following conditions are met:- current request URL is different than page URL
- page is not stateless or (page is stateless and session is not temporary)
- render strategy is either REDIRECT_TO_BUFFER or REDIRECT_TO_RENDER
-
-
Method Detail
-
values
public static RenderPageRequestHandler.RedirectPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RenderPageRequestHandler.RedirectPolicy c : RenderPageRequestHandler.RedirectPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RenderPageRequestHandler.RedirectPolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-