org.apache.wicket.request.handler
Enum RenderPageRequestHandler.RedirectPolicy

java.lang.Object
  extended by java.lang.Enum<RenderPageRequestHandler.RedirectPolicy>
      extended by org.apache.wicket.request.handler.RenderPageRequestHandler.RedirectPolicy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RenderPageRequestHandler.RedirectPolicy>
Enclosing class:
RenderPageRequestHandler

public static enum RenderPageRequestHandler.RedirectPolicy
extends java.lang.Enum<RenderPageRequestHandler.RedirectPolicy>

Determines whether Wicket does a redirect when rendering a page

Author:
Matej Knopp

Enum Constant Summary
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
static RenderPageRequestHandler.RedirectPolicy valueOf(java.lang.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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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:

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(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.