enum AppServerOperatingMode extends java.lang.Enum<AppServerOperatingMode>
STATE_AWARE
for the "State-aware" modeSTATE_RESET
for the "State-reset" modeSTATELESS
for the "Stateless" modeSTATE_FREE
for the "State-free" modeEnum Constant and Description |
---|
STATE_AWARE |
STATE_FREE |
STATE_RESET |
STATELESS |
Modifier and Type | Field and Description |
---|---|
private boolean |
sessionFree
Flag indicating this is a session-free operating mode.
|
Modifier and Type | Method and Description |
---|---|
static AppServerOperatingMode |
fromString(java.lang.String txt)
Create the appropriate enum constant, from the given string.
|
boolean |
isSessionFree()
Getter for the
sessionFree flag. |
boolean |
isSessionManaged()
Check if this is a session-managed operating mode.
|
static AppServerOperatingMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AppServerOperatingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AppServerOperatingMode STATE_RESET
public static final AppServerOperatingMode STATE_AWARE
public static final AppServerOperatingMode STATELESS
public static final AppServerOperatingMode STATE_FREE
private final boolean sessionFree
public static AppServerOperatingMode[] values()
for (AppServerOperatingMode c : AppServerOperatingMode.values()) System.out.println(c);
public static AppServerOperatingMode 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 AppServerOperatingMode fromString(java.lang.String txt)
Enum.toString()
text.txt
- The string to search, case-insensitively.java.lang.IllegalArgumentException
- If the passed text can't be matched with a valid operating mode.public boolean isSessionFree()
sessionFree
flag.public boolean isSessionManaged()
true
if this is not a session-free operating mode.