|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.pap.unmarshal.PapMessage
net.rim.pushsdk.pap.unmarshal.ResultNotification
public class ResultNotification
Represents a PAP result notification.
| Constructor Summary | |
|---|---|
ResultNotification()
Default result notification constructor. |
|
| Method Summary | |
|---|---|
String |
getAddress()
Gets the address associated with the result notification. |
StatusCode |
getCode()
Gets the code that indicates the final status of the push message for the address associated with the notification. |
String |
getDescription()
Gets the textual description of the outcome of the push submission for the address associated with the notification. |
Date |
getEventTime()
Gets the date and time at which the push message reached its final state. |
MessageState |
getMessageState()
Gets the state of the push message for the address associated with the notification. |
QualityOfService |
getQualityOfService()
Gets the quality of service for the push associated with the notification. |
Date |
getReceivedTime()
Gets the date and time at which the PPG received the push request. |
String |
getSenderAddress()
Gets the address of the PPG that processed the push associated with the notification. |
String |
getSenderName()
Gets the textual name of the PPG that processed the push associated with the notification. |
void |
setAddress(String address)
Sets the address associated with the result notification. |
void |
setCode(StatusCode code)
Sets the code that indicates the final status of the push message for the address associated with the notification. |
void |
setDescription(String description)
Sets the textual description of the outcome of the push submission for the address associated with the notification. |
void |
setEventTime(Date eventTime)
Sets the date and time at which the push message reached its final state. |
void |
setMessageState(MessageState messageState)
Sets the state of the push message for the address associated with the notification. |
void |
setQualityOfService(QualityOfService qualityOfService)
Sets the quality of service for the push associated with the notification. |
void |
setReceivedTime(Date receivedTime)
Sets the date and time at which the PPG received the push request. |
void |
setSenderAddress(String senderAddress)
Sets the address of the PPG that processed the push associated with the notification. |
void |
setSenderName(String senderName)
Sets the textual name of the PPG that processed the push associated with the notification. |
String |
toString()
Constructs a String with all attributes in name = value format. |
void |
validate()
Validates the result notification: - the push id is not null or equal to the keyword "null" - the message state is not null or equal to the keyword "null" - the status code is not null or equal to the keyword "null" - the address is not null - the address does not contain the push_all token |
| Methods inherited from class net.rim.pushsdk.pap.unmarshal.PapMessage |
|---|
getPushId, setPushId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ResultNotification()
| Method Detail |
|---|
public String getSenderAddress()
public void setSenderAddress(String senderAddress)
senderAddress - the address of the PPGpublic String getSenderName()
public void setSenderName(String senderName)
senderName - the textual name of the PPGpublic Date getReceivedTime()
public void setReceivedTime(Date receivedTime)
receivedTime - the date at which the PPG received the push requestpublic Date getEventTime()
public void setEventTime(Date eventTime)
eventTime - the date at which the push message reached its final statepublic MessageState getMessageState()
public void setMessageState(MessageState messageState)
messageState - the state of the push message for the notification's addresspublic StatusCode getCode()
public void setCode(StatusCode code)
code - the push message's final statuspublic String getDescription()
public void setDescription(String description)
description - the textual description of the outcomepublic String getAddress()
public void setAddress(String address)
address - the result notification's addresspublic QualityOfService getQualityOfService()
public void setQualityOfService(QualityOfService qualityOfService)
qualityOfService - the quality of service
public void validate()
throws IllegalArgumentException
IllegalArgumentException - if the result notification fails validationpublic String toString()
String with all attributes in name = value format.
toString in class PapMessageString representation of this object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||