public enum CmsAliasMode extends java.lang.Enum<CmsAliasMode> implements com.google.gwt.user.client.rpc.IsSerializable
| Enum Constant and Description |
|---|
page
The request will be forwarded internally to the given resource.
|
passthrough
Pass the new path along to the next resource handler.
|
permanentRedirect
A 'moved permanently' status with a link to the aliased resource will be sent to the browser.
|
redirect
A 'moved temporarily' status with a link to the aliased resource will be sent to the browser.
|
| Modifier and Type | Method and Description |
|---|---|
static CmsAliasMode |
fromInt(int id)
Gets the enum constant for a given integer id.
|
boolean |
isRedirect()
Checks whether this is a mode that requires a redirect.
|
int |
toInt()
Converts an enum constant to the id used for storing alias modes in the database.
|
static CmsAliasMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CmsAliasMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CmsAliasMode page
public static final CmsAliasMode passthrough
public static final CmsAliasMode permanentRedirect
public static final CmsAliasMode redirect
public static CmsAliasMode[] values()
for (CmsAliasMode c : CmsAliasMode.values()) System.out.println(c);
public static CmsAliasMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static CmsAliasMode fromInt(int id)
id - the integer idpublic boolean isRedirect()
public int toInt()