|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<SubscriptionStatusCode>
net.rim.pushsdk.subscription.web.SubscriptionStatusCode
public enum SubscriptionStatusCode
Status codes returned by the subscription servlets (subscribe, unsubscribe, suspend, resume).
| Enum Constant Summary | |
|---|---|
CANNOT_RESUME_SINCE_UNSUBSCRIBED
If a user's subscription to a push application is inactive (i.e. |
|
CANNOT_SUSPEND_SINCE_UNSUBSCRIBED
If a user's subscription to a push application is inactive (i.e. |
|
CONTENT_PROVIDER_SUBSCRIPTION_FAILED
If the content provider's subscription attempt (subscribe/unsubscribe/suspend/resume) failed. |
|
INVALID_ADDRESS
If the address is null or empty or is longer than 40 characters in length. |
|
INVALID_PARAMETERS
If the OS version is null or empty. |
|
INVALID_PASSWORD
If the password is null or empty. |
|
INVALID_PUSH_APPLICATION
If the push application id is null or empty, if the push application with the given id cannot be found, or if the push application was found but was inactive or expired. |
|
INVALID_SUBSCRIBER_ID
If the subscriber id is null or empty (e.g. |
|
INVALID_TYPE
For applications of type Public+Enterprise Push, if the subscriber type is null or empty. |
|
INVALID_USERNAME
If the username is null or empty. |
|
SUBSCRIBER_AUTHENTICATION_FAILED
Authentication of the subscriber, based on the username and password they passed in, failed. |
|
SUBSCRIBER_NOT_FOUND
If a user's subscription to a push application cannot be found. |
|
SUBSCRIPTION_NOT_SUPPORTED
If subscription is not supported for a push application. |
|
SUCCESS
A successful subscription operation. |
|
SYSTEM_ERROR
If any other errors occur. |
|
| Method Summary | |
|---|---|
String |
toString()
Returns a status code of the following form rc=xxxxx. |
static SubscriptionStatusCode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SubscriptionStatusCode[] |
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 SubscriptionStatusCode SUCCESS
public static final SubscriptionStatusCode INVALID_ADDRESS
public static final SubscriptionStatusCode INVALID_PARAMETERS
public static final SubscriptionStatusCode INVALID_PUSH_APPLICATION
public static final SubscriptionStatusCode SUBSCRIBER_NOT_FOUND
public static final SubscriptionStatusCode INVALID_SUBSCRIBER_ID
public static final SubscriptionStatusCode CANNOT_SUSPEND_SINCE_UNSUBSCRIBED
public static final SubscriptionStatusCode CANNOT_RESUME_SINCE_UNSUBSCRIBED
public static final SubscriptionStatusCode INVALID_USERNAME
public static final SubscriptionStatusCode INVALID_PASSWORD
public static final SubscriptionStatusCode SUBSCRIPTION_NOT_SUPPORTED
public static final SubscriptionStatusCode SUBSCRIBER_AUTHENTICATION_FAILED
public static final SubscriptionStatusCode CONTENT_PROVIDER_SUBSCRIPTION_FAILED
public static final SubscriptionStatusCode INVALID_TYPE
public static final SubscriptionStatusCode SYSTEM_ERROR
| Method Detail |
|---|
public static SubscriptionStatusCode[] values()
for (SubscriptionStatusCode c : SubscriptionStatusCode.values()) System.out.println(c);
public static SubscriptionStatusCode 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 String toString()
toString in class Enum<SubscriptionStatusCode>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||