Enum RedirectRequestHandler.Mode
- java.lang.Object
-
- java.lang.Enum<RedirectRequestHandler.Mode>
-
- org.apache.wicket.request.http.handler.RedirectRequestHandler.Mode
-
- All Implemented Interfaces:
Serializable
,Comparable<RedirectRequestHandler.Mode>
- Enclosing class:
- RedirectRequestHandler
public static enum RedirectRequestHandler.Mode extends Enum<RedirectRequestHandler.Mode>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RedirectRequestHandler.Mode
valueOf(String name)
Returns the enum constant of this type with the specified name.static RedirectRequestHandler.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REDIRECT
public static final RedirectRequestHandler.Mode REDIRECT
UseWebResponse.sendRedirect(String)
. It will callWebResponse.encodeRedirectURL(CharSequence)
and may URL-encode some parts of thelocation
-
STATUS
public static final RedirectRequestHandler.Mode STATUS
UseWebResponse.setStatus(int)
+WebResponse.setHeader(String, String)
. Sets thelocation
as a value ofLocation
response header as is, i.e. without url-encoding.
-
AUTO
public static final RedirectRequestHandler.Mode AUTO
Decide dynamically depending on the value ofstatus
field
-
-
Method Detail
-
values
public static RedirectRequestHandler.Mode[] 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 (RedirectRequestHandler.Mode c : RedirectRequestHandler.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RedirectRequestHandler.Mode 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
-
-