Package com.eatthepath.pushy.apns.server
Enum RejectionReason
- java.lang.Object
-
- java.lang.Enum<RejectionReason>
-
- com.eatthepath.pushy.apns.server.RejectionReason
-
- All Implemented Interfaces:
Serializable
,Comparable<RejectionReason>
,java.lang.constant.Constable
public enum RejectionReason extends Enum<RejectionReason>
An enumeration of reasons a push notification may be rejected by an APNs server. The most up-to-date descriptions of each rejection reason are available in Table 5 of Sending Notification Requests to APNs.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description static RejectionReason
valueOf(String name)
Returns the enum constant of this type with the specified name.static RejectionReason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
-
-
-
Enum Constant Detail
-
BAD_COLLAPSE_ID
public static final RejectionReason BAD_COLLAPSE_ID
-
BAD_DEVICE_TOKEN
public static final RejectionReason BAD_DEVICE_TOKEN
-
BAD_EXPIRATION_DATE
public static final RejectionReason BAD_EXPIRATION_DATE
-
BAD_MESSAGE_ID
public static final RejectionReason BAD_MESSAGE_ID
-
BAD_PRIORITY
public static final RejectionReason BAD_PRIORITY
-
BAD_TOPIC
public static final RejectionReason BAD_TOPIC
-
DEVICE_TOKEN_NOT_FOR_TOPIC
public static final RejectionReason DEVICE_TOKEN_NOT_FOR_TOPIC
-
DUPLICATE_HEADERS
public static final RejectionReason DUPLICATE_HEADERS
-
IDLE_TIMEOUT
public static final RejectionReason IDLE_TIMEOUT
-
INVALID_PUSH_TYPE
public static final RejectionReason INVALID_PUSH_TYPE
-
MISSING_DEVICE_TOKEN
public static final RejectionReason MISSING_DEVICE_TOKEN
-
MISSING_TOPIC
public static final RejectionReason MISSING_TOPIC
-
PAYLOAD_EMPTY
public static final RejectionReason PAYLOAD_EMPTY
-
TOPIC_DISALLOWED
public static final RejectionReason TOPIC_DISALLOWED
-
BAD_CERTIFICATE
public static final RejectionReason BAD_CERTIFICATE
-
BAD_CERTIFICATE_ENVIRONMENT
public static final RejectionReason BAD_CERTIFICATE_ENVIRONMENT
-
EXPIRED_PROVIDER_TOKEN
public static final RejectionReason EXPIRED_PROVIDER_TOKEN
-
FORBIDDEN
public static final RejectionReason FORBIDDEN
-
INVALID_PROVIDER_TOKEN
public static final RejectionReason INVALID_PROVIDER_TOKEN
-
MISSING_PROVIDER_TOKEN
public static final RejectionReason MISSING_PROVIDER_TOKEN
-
BAD_PATH
public static final RejectionReason BAD_PATH
-
METHOD_NOT_ALLOWED
public static final RejectionReason METHOD_NOT_ALLOWED
-
UNREGISTERED
public static final RejectionReason UNREGISTERED
-
PAYLOAD_TOO_LARGE
public static final RejectionReason PAYLOAD_TOO_LARGE
-
TOO_MANY_PROVIDER_TOKEN_UPDATES
public static final RejectionReason TOO_MANY_PROVIDER_TOKEN_UPDATES
-
TOO_MANY_REQUESTS
public static final RejectionReason TOO_MANY_REQUESTS
-
INTERNAL_SERVER_ERROR
public static final RejectionReason INTERNAL_SERVER_ERROR
-
SERVICE_UNAVAILABLE
public static final RejectionReason SERVICE_UNAVAILABLE
-
SHUTDOWN
public static final RejectionReason SHUTDOWN
-
-
Method Detail
-
values
public static RejectionReason[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RejectionReason valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-