|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.blackberry.api.push.PushApplicationStatus
public class PushApplicationStatus
Provides mechanisms for handling the current status of the client-side push application.
Field Summary | ||
---|---|---|
static byte |
REASON_API_CALL
Status change was initiated by API call |
|
static byte |
REASON_INVALID_PARAMETERS
Invalid parameters were provided that caused registration failure |
|
static byte |
REASON_NETWORK_ERROR
Communication failed due to network error |
|
static byte |
REASON_REJECTED_BY_SERVER
Registration was rejected by server |
|
static byte |
REASON_SIM_CHANGE
Constant for status reason initiated by SIM card change. |
|
static byte |
STATUS_ACTIVE
Subscription status client-side push application that is actively listening for active push application. |
|
static byte |
STATUS_FAILED
Subscription status of the client-side push application when subscription has failed and it is not listening for push messages. |
|
static byte |
STATUS_NOT_REGISTERED
Application didn't register for push messages |
|
static byte |
STATUS_PENDING
Subscription status of the client-side push application that requested push communication but was not confirmed yet. |
Method Summary | ||
---|---|---|
String |
getError()
Returns error message indicating why the registration failed. |
|
byte |
getReason()
Returns reason why the status has changed |
|
byte |
getStatus()
Returns current registration status. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte STATUS_NOT_REGISTERED
public static final byte STATUS_PENDING
This status is usually reported when push subscription requires server support and it was not completed yet, for example, due to the BlackBerry device being out of network coverage.
public static final byte STATUS_ACTIVE
Note that server-side status may be different (e.g. suspended) which would block push messages.
public static final byte STATUS_FAILED
public static final byte REASON_NETWORK_ERROR
public static final byte REASON_REJECTED_BY_SERVER
public static final byte REASON_SIM_CHANGE
If application was tracked by the BPAS and user replaced SIM card then the application will be unregistered and should perform user authorization and re-register if required.
public static final byte REASON_INVALID_PARAMETERS
public static final byte REASON_API_CALL
Method Detail |
---|
public byte getStatus()
PushApplicationStatus.STATUS_PENDING
, PushApplicationStatus.STATUS_ACTIVE
,
PushApplicationStatus.STATUS_FAILED
, PushApplicationStatus.STATUS_NOT_REGISTERED
.public String getError()
PushApplicationStatus.STATUS_FAILED
status code, otherwise null.
public byte getReason()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal