|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.query.subscription.SubscriptionQueryMessage
net.rim.pushsdk.query.subscription.SubscriptionQueryResponse
public class SubscriptionQueryResponse
Represents the response from a subscription query request to the PPG.
| Field Summary | |
|---|---|
static String |
NO_RESULTS_STATUS_CODE
The status code associated with no results being returned by the request. |
static String |
QUERY_RESPONSE_TAG
The query response XML tag. |
static String |
STATUS_CODE_ATTR
The status code XML attribute. |
static String |
STATUS_DESC_ATTR
The status description XML attribute. |
static String |
STATUS_RESULT_TAG
The query result XML tag. |
static String |
SUCCESS_STATUS_CODE
The status code associated with a success. |
| Fields inherited from class net.rim.pushsdk.query.subscription.SubscriptionQueryMessage |
|---|
ADDRESS_ATTR, ADDRESS_TAG, CURRENT_MSG_VERSION, EVENT_TIME_ATTR, PUSHAPP_ID_ATTR, pushApplicationId, QUERY_OUTERMOST_TAG, VERSION_ATTR |
| Constructor Summary | |
|---|---|
SubscriptionQueryResponse()
Constructs a subscription query response message. |
|
| Method Summary | |
|---|---|
void |
addResult(SubscriptionQueryResult result)
Adds a subscription query result to the response. |
boolean |
equals(Object obj)
Returns true if two subscription query response messages are found to be equal and false otherwise. |
String |
getCode()
Gets the status code associated with the response. |
String |
getDescription()
Gets the status description associated with the response. |
Date |
getEventTime()
Gets the date and time at which the response was received. |
Set<SubscriptionQueryResult> |
getResults()
Gets the results of the subscription query. |
int |
hashCode()
Returns a hashcode for this subscription query response message. |
void |
setCode(String code)
Sets the status code associated with the response. |
void |
setDescription(String description)
Sets the status description associated with the response. |
void |
setEventTime(Date eventTime)
Sets the date and time at which the response was received. |
void |
setResults(Set<SubscriptionQueryResult> results)
Sets the results of the subscription query. |
String |
toString()
Constructs a String with all attributes in name = value format. |
| Methods inherited from class net.rim.pushsdk.query.subscription.SubscriptionQueryMessage |
|---|
getPushApplicationId, setPushApplicationId |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String QUERY_RESPONSE_TAG
public static final String STATUS_RESULT_TAG
public static final String STATUS_CODE_ATTR
public static final String STATUS_DESC_ATTR
public static final String SUCCESS_STATUS_CODE
public static final String NO_RESULTS_STATUS_CODE
| Constructor Detail |
|---|
public SubscriptionQueryResponse()
| Method Detail |
|---|
public Date getEventTime()
public void setEventTime(Date eventTime)
eventTime - the date at which the response was receivedpublic String getCode()
public void setCode(String code)
code - the status codepublic String getDescription()
public void setDescription(String description)
description - the status descriptionpublic Set<SubscriptionQueryResult> getResults()
public void setResults(Set<SubscriptionQueryResult> results)
results - the subscription query resultspublic void addResult(SubscriptionQueryResult result)
result - a subscription query resultpublic int hashCode()
hashCode in class SubscriptionQueryMessagepublic boolean equals(Object obj)
equals in class SubscriptionQueryMessagepublic String toString()
String with all attributes in name = value format.
toString in class SubscriptionQueryMessageString representation of this object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||