public enum MpnsResponse extends Enum<MpnsResponse>
| Enum Constant and Description |
|---|
BAD_REQUEST
This error occurs when the web service sends a notification request
with a bad XML document or malformed notification URI.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final MpnsResponse RECEIVED
public static final MpnsResponse QUEUED
public static final MpnsResponse QUEUE_FULL
public static final MpnsResponse SUPPRESSED
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 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 nameNullPointerException - if the argument is nullpublic int getResponseCode()
public String getNotificationStatus()
public String getDeviceConnectionStatus()
public String getSubscriptionStatus()
public boolean isSuccessful()
public boolean shouldRetry()
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.