|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.push.PushParameters
public class PushParameters
Parameters that define the characteristics of a push message to send.
| Field Summary | |
|---|---|
protected List<String> |
addresses
|
protected String |
applicationId
|
protected Content |
content
|
protected Date |
deliverBeforeTimestamp
|
protected Boolean |
isApplicationReliable
|
protected String |
pushId
|
| Constructor Summary | |
|---|---|
PushParameters()
Default PushParameters constructor. |
|
PushParameters(String applicationId,
List<String> addresses,
Content content)
Create a PushParameters
| |
PushParameters(String applicationId,
String address,
Content content)
Create a PushParameters object with the specified attributes. |
|
| Method Summary | |
|---|---|
String |
getAddress()
Gets the one address being pushed to (if only one was specified). |
List<String> |
getAddresses()
Gets the list of addresses to be pushed to. |
String |
getApplicationId()
Gets the id of the application to push to. |
Boolean |
getApplicationReliable()
Whether or not a push message should have application-level reliability. |
Content |
getContent()
Gets the content to be pushed. |
Date |
getDeliverBeforeTimestamp()
Gets the expiry time of the push message. |
String |
getPushId()
Gets the id of the push message. |
void |
setAddress(String address)
Sets the one address being pushed to. |
void |
setAddresses(List<String> addresses)
Sets the list of subscriber addresses to push to. |
void |
setApplicationId(String applicationId)
Sets the id of the application to push to. |
void |
setApplicationReliable(Boolean isApplicationReliable)
Sets whether or not a push should have application-level reliability. |
void |
setContent(Content content)
Sets the content to push. |
void |
setDeliverBeforeTimestamp(Date deliverBeforeTimestamp)
Optionally set the expiry time of the message. |
void |
setPushId(String pushId)
Optionally set the id of the push message. |
String |
toString()
Constructs a String with all attributes in name = value format. |
void |
validate(boolean isBESPush)
Deprecated. As of release 1.1, replaced by validate(PushApplicationType) |
void |
validate(PushApplicationType applicationType)
Validates that the mandatory parameters are set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String applicationId
protected String pushId
protected Date deliverBeforeTimestamp
protected Boolean isApplicationReliable
protected List<String> addresses
protected Content content
| Constructor Detail |
|---|
public PushParameters()
public PushParameters(String applicationId,
List<String> addresses,
Content content)
PushParameters
- Parameters:
applicationId - the unique id of the push application to push the data toaddresses - list of addresses to push the message to, push_all for all subscriberscontent - the content of the push message
public PushParameters(String applicationId,
String address,
Content content)
PushParameters object with the specified attributes.
applicationId - the unique id of the push application to push the data toaddress - address to push the message to, push_all for all subscriberscontent - the content of the push message| Method Detail |
|---|
public String getApplicationId()
public void setApplicationId(String applicationId)
applicationId - the id of the applicationpublic String getPushId()
public void setPushId(String pushId)
pushId - the push id to use; if null, an IdGenerator will be used to automatically generate a push id by the
PushServiceIdGeneratorpublic Date getDeliverBeforeTimestamp()
public void setDeliverBeforeTimestamp(Date deliverBeforeTimestamp)
deliverBeforeTimestamp - the expiry date of the push; if null, the default message time-to-live for push application being pushed to will
be used (see the getDefaultPushLiveTime() method).PushApplicationpublic Boolean getApplicationReliable()
public void setApplicationReliable(Boolean isApplicationReliable)
isApplicationReliable - if a push is application reliable; if null, the default application-level reliability for the push application
being pushed to will be used (see the isApplicationReliable() method of
PushApplication).PushApplicationpublic List<String> getAddresses()
public String getAddress()
public void setAddresses(List<String> addresses)
addresses - the subscriber addressespublic void setAddress(String address)
address - the one address to push topublic Content getContent()
public void setContent(Content content)
content - the content@Deprecated public void validate(boolean isBESPush)
validate(PushApplicationType)
isBESPush - if this push is being send to a enterprise/BES PPG
IllegalArgumentException - if any of the mandatory parameters are null or invalidpublic void validate(PushApplicationType applicationType)
applicationType - the type of application this push message is being sent to (i.e. public/BIS, enterprise/BES or both)
IllegalArgumentException - if any of the mandatory parameters are null or invalidpublic String toString()
String with all attributes in name = value format.
toString in class ObjectString representation of this object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||