|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Reason>
org.glassfish.cafe.api.Reason
public enum Reason
Reason for rejecting a participant. Each reason will be translated to corresponding response code by the CAFE container.
| Enum Constant Summary | |
|---|---|
BUSY
The party is busy. |
|
BUSY_EVERYWHERE
It is busy everywhere. |
|
DECLINE
The request is declined. |
|
ERROR
An unexpected error occurred. |
|
NOT_AVAILABLE
The party is not available. |
|
NOT_FOUND
The party is not found. |
|
TIMEOUT
The operation timed out. |
|
| Method Summary | |
|---|---|
static Reason |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Reason[] |
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 Reason NOT_FOUND
public static final Reason NOT_AVAILABLE
public static final Reason BUSY
public static final Reason ERROR
public static final Reason TIMEOUT
public static final Reason BUSY_EVERYWHERE
public static final Reason DECLINE
| Method Detail |
|---|
public static Reason[] values()
for (Reason c : Reason.values()) System.out.println(c);
public static Reason valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||