|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<DeliveryError>
com.notnoop.apns.DeliveryError
public enum DeliveryError
Errors in delivery that may get reported by Apple APN servers
| Enum Constant Summary | |
|---|---|
INVALID_PAYLOAD_SIZE
|
|
INVALID_TOKEN
|
|
INVALID_TOKEN_SIZE
|
|
INVALID_TOPIC_SIZE
|
|
MISSING_DEVICE_TOKEN
|
|
MISSING_PAYLOAD
|
|
MISSING_TOPIC
|
|
NO_ERROR
Connection closed without any error. |
|
NONE
|
|
PROCESSING_ERROR
|
|
UNKNOWN
|
|
| Method Summary | |
|---|---|
int |
code()
The status code as specified by Apple |
static DeliveryError |
ofCode(int code)
Returns the appropriate DeliveryError enum
corresponding to the Apple provided status code |
static DeliveryError |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DeliveryError[] |
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 DeliveryError NO_ERROR
public static final DeliveryError PROCESSING_ERROR
public static final DeliveryError MISSING_DEVICE_TOKEN
public static final DeliveryError MISSING_TOPIC
public static final DeliveryError MISSING_PAYLOAD
public static final DeliveryError INVALID_TOKEN_SIZE
public static final DeliveryError INVALID_TOPIC_SIZE
public static final DeliveryError INVALID_PAYLOAD_SIZE
public static final DeliveryError INVALID_TOKEN
public static final DeliveryError NONE
public static final DeliveryError UNKNOWN
| Method Detail |
|---|
public static DeliveryError[] values()
for (DeliveryError c : DeliveryError.values()) System.out.println(c);
public static DeliveryError 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 int code()
public static DeliveryError ofCode(int code)
DeliveryError enum
corresponding to the Apple provided status code
code - status code provided by Apple
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||