|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.pap.control.PapControl
net.rim.pushsdk.pap.control.ResultNotificationResponseControl
public class ResultNotificationResponseControl
Represents the Result Notification PAP response control (XML).
| Field Summary | |
|---|---|
static String |
BAD_MESSAGE_DESCRIPTION
The description when a result notification cannot properly be unmarshalled because it is a bad message. |
static String |
FULL_NOTIFICATION_QUEUE_DESCRIPTION
The description when a result notification cannot be processed because the processing queue is full. |
static String |
GENERAL_ERROR_DESCRIPTION
The description when a result notification cannot be properly handled and none of the other descriptions apply. |
static String |
ILLEGAL_ARGUMENT_DESCRIPTION
The description when a result notification fails validation. |
static String |
SUCCESS_DESCRIPTION
The description when a result notification has been successfully received. |
| Fields inherited from class net.rim.pushsdk.pap.control.PapControl |
|---|
ATTRIBUTE_KEY_VALUE_SEPARATOR, CLOSE_BRACKET, CLOSE_BRACKET_WITH_SLASH, DTD_DECLARATION_BES, DTD_DECLARATION_PUBLIC, EPILOGUE, ESCAPED_DOUBLE_QUOTE, FORWARD_SLASH, NEW_LINE, OPEN_BRACKET, OPEN_BRACKET_WITH_SLASH, PREAMBLE_BES, PREAMBLE_PUBLIC, pushId, pushSDKProperties, usingPublicPush, XML_DECLARATION |
| Constructor Summary | |
|---|---|
ResultNotificationResponseControl()
|
|
| Method Summary | |
|---|---|
String |
getAddress()
Gets the address associated with the result notification response control. |
StatusCode |
getCode()
Gets the status code associated with the result notification response control. |
String |
getDescription()
Gets the status description associated with the result notification response control. |
String |
getPushId()
Gets the push id associated with the result notification response control. |
void |
setAddress(String address)
Sets the address associated with the result notification response control. |
void |
setCode(StatusCode code)
Sets the status code associated with the result notification response control. |
void |
setDescription(String description)
Sets the status description associated with the result notification response control. |
void |
setPushId(String pushId)
Sets the push id associated with the result notification response control. |
String |
toString()
Constructs a String with all attributes in name = value format. |
protected void |
validate()
Validates the following: - the push id is not null - the push id does not contain certain special characters (see the "parser.special.characters" property in PushSDK.properties for the full list) - the address is not null and is not the push_all token - the status code is not null |
void |
writeTo(ByteArrayOutputStream out)
Writes the PAP control out to the specified output stream. |
| Methods inherited from class net.rim.pushsdk.pap.control.PapControl |
|---|
getAttribute, getContentType, getEndTag, getEpilogue, getPreamble, getStartTagClosed, getStartTagOpen, isUsingPublicPush, setPushSDKProperties, setUsingPublicPush, validatePushIdForSpecialCharacters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String SUCCESS_DESCRIPTION
public static final String FULL_NOTIFICATION_QUEUE_DESCRIPTION
public static final String BAD_MESSAGE_DESCRIPTION
public static final String ILLEGAL_ARGUMENT_DESCRIPTION
validate() method in the
ResultNotification class.
public static final String GENERAL_ERROR_DESCRIPTION
| Constructor Detail |
|---|
public ResultNotificationResponseControl()
| Method Detail |
|---|
public void writeTo(ByteArrayOutputStream out)
throws IOException
PapControl
writeTo in class PapControlout - the output stream
IOException - if any errors occur writing to the output streamprotected void validate()
validate in class PapControlpublic String toString()
String with all attributes in name = value format.
toString in class ObjectString representation of this object.public String getPushId()
public void setPushId(String pushId)
pushId - the push idpublic StatusCode getCode()
public void setCode(StatusCode code)
code - the status codepublic String getDescription()
public void setDescription(String description)
description - the status descriptionpublic String getAddress()
public void setAddress(String address)
address - the address
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||