Module org.apache.wicket.core
Enum Class 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>
,Constable
- 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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAlways redirect if current request URL is different than page URL.Redirect if necessary.Never redirect - always render the page to current response. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALWAYS_REDIRECT
Always redirect if current request URL is different than page URL. -
NEVER_REDIRECT
Never redirect - always render the page to current response. -
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 Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-