|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.pap.StatusCode
public class StatusCode
PAP code constants represent the codes that can be returned by the PPG and their user-friendly English textual descriptions.
| Field Summary | |
|---|---|
static StatusCode |
ACCEPTED
This code indicates that the request has been accepted for processing, but the final outcome is not yet known. |
static StatusCode |
ADDRESS_ERROR
The address supplied in the request was not in a recognized format or the PPG ascertained that the address was not valid for the network because it was determined not to be serviced by this PPG (i.e Not subscribed). |
static StatusCode |
ADDRESS_NOT_FOUND
The address supplied in the request could not be located by the PPG. |
static StatusCode |
BAD_REQ
General error/catch-all. |
static StatusCode |
CANCELLATION_NOT_POSSIBLE
The Push ID specified was found, but the corresponding message(s) could not be cancelled for some reason. |
static StatusCode |
DUPLICATE_PUSH_ID
The PPG has determined that the Push Initiator has violated the protocol rule that each new push submission must have a unique push ID. |
static StatusCode |
EXPIRED
This code indicates that the request failed because the message expired before it could be delivered. |
static StatusCode |
FAILED
The PPG experienced an error delivering the push to the device (e.g. |
static StatusCode |
FORBIDDEN
The request was refused. |
static StatusCode |
INTERNAL_SERVER_ERROR
Generic error: The server failed to fulfill an apparently valid request. |
static StatusCode |
NOT_IMPLEMENTED
The requested operation is not implemented in the PPG. |
static StatusCode |
OK
This code indicates that the action requested was successful. |
static StatusCode |
OVER_HARD_PUSH_QUOTA
This code indicates that the request has been rejected by the PPG because the daily push count quota has been exceeded. |
static StatusCode |
OVER_SOFT_PUSH_QUOTA
This code indicates that the request has been accepted for processing, but the final outcome is not yet known. |
static StatusCode |
PORT_CLOSED
Indicates that no application on the device is listening on the specified port (either the application is closed if it can be closed or it was removed). |
static StatusCode |
PUSH_ABORTED_BY_DEVICE
Push connection aborted by device. |
static StatusCode |
PUSH_ID_NOT_FOUND
This code is returned when an operation is requested on a previously submitted message and the PPG cannot find the message for the Push ID specified. |
static StatusCode |
SERVICE_BLOCKED
Device unable to receive push. |
static StatusCode |
SERVICE_FAILURE
The push failed. |
static StatusCode |
SERVICE_UNAVAILABLE
This code indicates that the server could not honour the request because the server is busy. |
static StatusCode |
SPECIFIED_DELIVERY_METHOD_NOT_POSSIBLE
The PPG could not deliver the message using the delivery-method specified in the request. |
static StatusCode |
STATUS_QUERY_NOT_POSSIBLE
The Push ID specified was found, but the corresponding address(es) are still being processed. |
static StatusCode |
VERSION_NOT_SUPPORTED
The version of PAP contained in the request is not supported. |
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Returns true if two status codes are found to be equal and false otherwise. |
String |
getCode()
Gets the status code returned by the PPG. |
String |
getDescription()
Gets the description of the status code returned by the PPG. |
static StatusCode |
getStatusCode(String codeString)
Gets a status code object from a code string. |
static Collection<StatusCode> |
getStatusCodes()
Gets a collection of all the status codes. |
int |
hashCode()
Returns a hashcode for this status code. |
String |
toString()
Gets the string representation of the status code. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final StatusCode OK
public static final StatusCode ACCEPTED
public static final StatusCode OVER_SOFT_PUSH_QUOTA
public static final StatusCode BAD_REQ
public static final StatusCode FORBIDDEN
public static final StatusCode ADDRESS_ERROR
public static final StatusCode ADDRESS_NOT_FOUND
public static final StatusCode PUSH_ID_NOT_FOUND
public static final StatusCode DUPLICATE_PUSH_ID
public static final StatusCode CANCELLATION_NOT_POSSIBLE
public static final StatusCode STATUS_QUERY_NOT_POSSIBLE
public static final StatusCode OVER_HARD_PUSH_QUOTA
public static final StatusCode INTERNAL_SERVER_ERROR
public static final StatusCode NOT_IMPLEMENTED
public static final StatusCode VERSION_NOT_SUPPORTED
public static final StatusCode SPECIFIED_DELIVERY_METHOD_NOT_POSSIBLE
public static final StatusCode SERVICE_FAILURE
StatusCode.EXPIREDpublic static final StatusCode SERVICE_UNAVAILABLE
public static final StatusCode EXPIRED
public static final StatusCode FAILED
public static final StatusCode PORT_CLOSED
public static final StatusCode SERVICE_BLOCKED
public static final StatusCode PUSH_ABORTED_BY_DEVICE
| Method Detail |
|---|
public static StatusCode getStatusCode(String codeString)
codeString - string representation of a status code, e.g. "1001"
StatusCode objectpublic static Collection<StatusCode> getStatusCodes()
public String getCode()
public String getDescription()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||