|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||
java.lang.Objectjava.lang.Enum<CmsAliasMode>
org.opencms.gwt.shared.alias.CmsAliasMode
public enum CmsAliasMode
The values of this enum describe what should happen when a request to an aliased resource comes in.
| Enum Constant Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| 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 |
|---|
public static final CmsAliasMode page
public static final CmsAliasMode passthrough
public static final CmsAliasMode permanentRedirect
public static final CmsAliasMode redirect
| Method Detail |
|---|
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 name
java.lang.NullPointerException - if the argument is nullpublic static CmsAliasMode fromInt(int id)
id - the integer id
public boolean isRedirect()
public int toInt()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||