public enum CmsAliasMode extends java.lang.Enum<CmsAliasMode> implements com.google.gwt.user.client.rpc.IsSerializable
枚举常量和说明 |
---|
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.
|
限定符和类型 | 方法和说明 |
---|---|
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)
返回带有指定名称的该类型的枚举常量。
|
static CmsAliasMode[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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
- 要返回的枚举常量的名称。如果该枚举类型没有带有指定名称的常量,
- 则抛出 IllegalArgumentException如果参数为空值,
- 则抛出 NullPointerExceptionpublic static CmsAliasMode fromInt(int id)
id
- the integer idpublic boolean isRedirect()
public int toInt()