|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<MessageState>
net.rim.pushsdk.pap.MessageState
public enum MessageState
PAP message state constants.
| Enum Constant Summary | |
|---|---|
ABORTED
Aborted indicates that the client aborted the message. |
|
CANCELLED
Cancelled indicates that the message was successfully cancelled through the cancel operation. |
|
DELIVERED
Delivered indicates the message was successfully delivered to the specified address. |
|
EXPIRED
Expired indicates that the message's time to live has passed before reaching a final state and therefore was not delivered. |
|
PENDING
Pending indicates the message has been accepted for processing but is not yet in a final state. |
|
REJECTED
Rejected indicates that the message was not accepted by the PPG. |
|
TIMEOUT
Timeout indicates that the delivery process timed out. |
|
UNDELIVERABLE
Undeliverable indicates that the message could not be delivered for various reasons (e.g. |
|
UNKNOWN
Unknown indicates that the state of the push can not be determined. |
|
| Method Summary | |
|---|---|
static MessageState |
getMessageState(String stateString)
Gets the message state corresponding to the given string. |
String |
toString()
Gets the message state as a string in lower case. |
static MessageState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MessageState[] |
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, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final MessageState REJECTED
public static final MessageState PENDING
public static final MessageState DELIVERED
public static final MessageState UNDELIVERABLE
public static final MessageState EXPIRED
public static final MessageState ABORTED
public static final MessageState TIMEOUT
public static final MessageState CANCELLED
public static final MessageState UNKNOWN
| Method Detail |
|---|
public static MessageState[] values()
for (MessageState c : MessageState.values()) System.out.println(c);
public static MessageState 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 nullpublic static MessageState getMessageState(String stateString)
stateString - a message state as a string
public String toString()
toString in class Enum<MessageState>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||