|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<MpnsResponse>
com.notnoop.mpns.MpnsResponse
public enum MpnsResponse
Represents the logical response of MpnsService
| Enum Constant Summary | |
|---|---|
BAD_REQUEST
This error occurs when the web service sends a notification request with a bad XML document or malformed notification URI. |
|
DISCONNECTED
The notification was processed by WNS but the device is offline. |
|
DROPPED_BY_CLIENT
The push notification was received and dropped by the client. |
|
EXPIRED
The subscription is invalid and is not present on the Push Notification Service. |
|
INACTIVATE_STATE
The device is in an inactive state. |
|
METHOD_NOT_ALLOWED
Invalid method (PUT, DELETE, CREATE). |
|
OVER_LIMIT
This error occurs when an unauthenticated web service has reached the per day throttling limit for a subscription. |
|
QUEUE_FULL
Queue overflow. |
|
QUEUED
The notification request was accepted and queued for delivery. |
|
RECEIVED
|
|
SERVICE_UNAVAILABLE
The Push Notification Service is unable to process the request. |
|
SUPPRESSED
The push notification was received and dropped by the Push Notification Service. |
|
UNAUTHORIZED
Sending this notification is unauthorized. |
|
UNDEFINED
Undefined This is used for uninitialized responses and when we try to parse an error that does not fit above error matrix. |
|
| Method Summary | |
|---|---|
String |
getDeviceConnectionStatus()
|
String |
getNotificationStatus()
|
int |
getResponseCode()
|
String |
getSubscriptionStatus()
|
boolean |
isSuccessful()
|
boolean |
shouldRetry()
|
static MpnsResponse |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MpnsResponse[] |
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 MpnsResponse RECEIVED
public static final MpnsResponse DISCONNECTED
public static final MpnsResponse QUEUED
public static final MpnsResponse QUEUE_FULL
public static final MpnsResponse SUPPRESSED
public static final MpnsResponse DROPPED_BY_CLIENT
public static final MpnsResponse BAD_REQUEST
public static final MpnsResponse UNAUTHORIZED
public static final MpnsResponse EXPIRED
public static final MpnsResponse METHOD_NOT_ALLOWED
public static final MpnsResponse OVER_LIMIT
public static final MpnsResponse INACTIVATE_STATE
public static final MpnsResponse SERVICE_UNAVAILABLE
public static final MpnsResponse UNDEFINED
| Method Detail |
|---|
public static MpnsResponse[] values()
for (MpnsResponse c : MpnsResponse.values()) System.out.println(c);
public static MpnsResponse 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 getResponseCode()
public String getNotificationStatus()
public String getDeviceConnectionStatus()
public String getSubscriptionStatus()
public boolean isSuccessful()
public boolean shouldRetry()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||