public enum ExtensionAction extends Enum<ExtensionAction>
Note that this is only used for views that were discovered via Faces Views. It has no affect on other resources, even if they have the same extension.
Enum Constant and Description |
---|
PROCEED
No special action is taken.
|
REDIRECT_TO_EXTENSIONLESS
Redirects to the same URL, but with the extension removed.
|
SEND_404
Send a 404 (not found), makes it look like e.g.
|
Modifier and Type | Method and Description |
---|---|
static ExtensionAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExtensionAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExtensionAction SEND_404
public static final ExtensionAction REDIRECT_TO_EXTENSIONLESS
public static final ExtensionAction PROCEED
public static ExtensionAction[] values()
for (ExtensionAction c : ExtensionAction.values()) System.out.println(c);
public static ExtensionAction valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2012–2015 OmniFaces. All rights reserved.