|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.push.request.PushRequest
public class PushRequest
Value object that represents a push request object.
A push request object model captures the high-level attributes that overall define a push message at push time. The SDK can persist this value object to storage so that you can query old push requests in storage at a later time (i.e. for generating reports, etc.). For one push request, there will also be many push request details saved to storage (one for each subscriber).
| Constructor Summary | |
|---|---|
PushRequest()
Default constructor for creating a push request object. |
|
PushRequest(PushRequest pushRequest)
Copy Constructor. |
|
| Method Summary | |
|---|---|
Integer |
getAddressCount()
Gets the total count of the addresses associated with the push request. |
String |
getBearer()
Gets the bearer associated with the push request. |
Long |
getContentSize()
Gets the content size of the push message in megabytes. |
Date |
getCreatedDate()
Gets the date at which the push request was created. |
DeliveryMethod |
getDeliveryMethod()
Gets the delivery method associated with the request. |
String |
getEnterpriseNotifyUrl()
Gets the notify URL associated with this request for the enterprise/BES PPG. |
StatusCode |
getEnterpriseStatusCode()
Gets the status code of the push request as returned by the enterprise/BES PPG. |
String |
getEnterpriseStatusDesc()
Gets a description of the status code description of the push request as returned by the enterprise/BES PPG. |
Date |
getExpiryDate()
Gets the expiry date of the push request. |
String |
getId()
Gets the id of the push request. |
Date |
getModifiedDate()
Gets the date at which the push request was last modified. |
String |
getNotifyUrl()
Deprecated. As of version 1.1, use getPublicNotifyUrl() or getEnterpriseNotifyUrl() |
String |
getPublicNotifyUrl()
Gets the notify URL associated with this request for the public/BIS PPG. |
StatusCode |
getPublicStatusCode()
Gets the status code of the push request as returned by the public/BIS PPG. |
String |
getPublicStatusDesc()
Gets a description of the status code description of the push request as returned by the public/BIS PPG. |
String |
getPushApplicationId()
Gets the id of the push application associated with this request. |
StatusCode |
getStatusCode()
Deprecated. As of release 1.1, the status code of the PushRequest is no longer used. Since the
PushRequest may have been sent to both the public/BIS PPG and the enterprise/BES PPG the status of
the overall push is ambiguous. Instead, look at the status code in the PushRequestDetail for each
subscriber. |
String |
getStatusDesc()
Deprecated. As of release 1.1, the status code of the PushRequest is no longer used. Since the
PushRequest may have been sent to both the public/BIS PPG and the enterprise/BES PPG the status of
the overall push is ambiguous. Instead, look at the status code in the PushRequestDetail for each
subscriber. |
Collection<SubscriberPartial> |
getSubscribers()
Gets the list of subscribers associated with the push request. |
Long |
getTotalContentSize()
Gets the total content size of the push request in megabytes. |
void |
setAddressCount(Integer addressCount)
Sets the total count of addresses associated with the push request. |
void |
setBearer(String bearer)
Sets the bearer associated with the push request. |
void |
setContentSize(Long contentSize)
Sets the content size of the push message in megabytes. |
void |
setCreatedDate(Date createdDate)
Sets the date at which the push request was created. |
void |
setDeliveryMethod(DeliveryMethod deliveryMethod)
Sets the delivery method associated with the request. |
void |
setEnterpriseNotifyUrl(String enterpriseNotifyUrl)
Sets the notify URL associated with the request for the enterprise/BES PGG |
void |
setEnterpriseStatusCode(StatusCode enterpriseStatusCode)
Sets the status code of the push request returned from the enterprise/BES PPG upon push submission. |
void |
setEnterpriseStatusDesc(String enterpriseStatusDesc)
Sets the description of the status code returned from the enterprise/BES PPG upon push submission. |
void |
setExpiryDate(Date expiryDate)
Sets the expiry date of the push request. |
void |
setId(String id)
Sets the id of the push request. |
void |
setModifiedDate(Date modifiedDate)
Sets the date at which the push request was last modified. |
void |
setNotifyUrl(String notifyUrl)
Deprecated. As of version 1.1, use setPublicNotifyUrl(String) or setEnterpriseNotifyUrl(String) |
void |
setPublicNotifyUrl(String publicNotifyUrl)
Sets the notify URL associated with the request for the public/BIS PGG |
void |
setPublicStatusCode(StatusCode publicStatusCode)
Sets the status code of the push request returned from the public/BIS PPG upon push submission. |
void |
setPublicStatusDesc(String publicStatusDesc)
Sets the description of the status code returned from the public/BIS PPG upon push submission. |
void |
setPushApplicationId(String pushApplicationId)
Sets the id of the push application associated with this request. |
void |
setStatusCode(StatusCode statusCode)
Deprecated. As of release 1.1, the status code of the PushRequest is no longer used. Since the
PushRequest may have been sent to both the public/BIS PPG and the enterprise/BES PPG the status of
the overall push is ambiguous. Instead, look at the status code in the PushRequestDetail for each
subscriber. |
void |
setStatusDesc(String statusDesc)
Deprecated. As of release 1.1, the status code of the PushRequest is no longer used. Since the
PushRequest may have been sent to both the public/BIS PPG and the enterprise/BES PPG the status of
the overall push is ambiguous. Instead, look at the status code in the PushRequestDetail for each
subscriber. |
void |
setSubscribers(Collection<SubscriberPartial> subscribers)
Sets the list of subscribers associated with the push request. |
void |
setTotalContentSize(Long totalContentSize)
Sets the total content size of the push request in megabytes. |
String |
toString()
Constructs a String with all attributes in name = value format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PushRequest(PushRequest pushRequest)
pushRequest - a PushRequest objectpublic PushRequest()
| Method Detail |
|---|
public String getId()
public void setId(String id)
id - the push request idpublic String getPushApplicationId()
public void setPushApplicationId(String pushApplicationId)
pushApplicationId - the push application id@Deprecated public String getNotifyUrl()
getPublicNotifyUrl() or getEnterpriseNotifyUrl()
IllegalArgumentException - The return value for this method is undefined if both public/BIS and enterprise/BES notify URLs present. Please
use the specific getters.PushApplication@Deprecated public void setNotifyUrl(String notifyUrl)
setPublicNotifyUrl(String) or setEnterpriseNotifyUrl(String)
notifyUrl - the notify URLPushApplicationpublic String getPublicNotifyUrl()
PushApplicationpublic void setPublicNotifyUrl(String publicNotifyUrl)
publicNotifyUrl - the notify URL used by the public/BIS PPGPushApplicationpublic String getEnterpriseNotifyUrl()
PushApplicationpublic void setEnterpriseNotifyUrl(String enterpriseNotifyUrl)
enterpriseNotifyUrl - the notify URL used by the enterprise/BES PPGPushApplicationpublic DeliveryMethod getDeliveryMethod()
public void setDeliveryMethod(DeliveryMethod deliveryMethod)
deliveryMethod - the delivery method@Deprecated public StatusCode getStatusCode()
PushRequest is no longer used. Since the
PushRequest may have been sent to both the public/BIS PPG and the enterprise/BES PPG the status of
the overall push is ambiguous. Instead, look at the status code in the PushRequestDetail for each
subscriber.
@Deprecated public void setStatusCode(StatusCode statusCode)
PushRequest is no longer used. Since the
PushRequest may have been sent to both the public/BIS PPG and the enterprise/BES PPG the status of
the overall push is ambiguous. Instead, look at the status code in the PushRequestDetail for each
subscriber.
statusCode - the push request's status code@Deprecated public String getStatusDesc()
PushRequest is no longer used. Since the
PushRequest may have been sent to both the public/BIS PPG and the enterprise/BES PPG the status of
the overall push is ambiguous. Instead, look at the status code in the PushRequestDetail for each
subscriber.
@Deprecated public void setStatusDesc(String statusDesc)
PushRequest is no longer used. Since the
PushRequest may have been sent to both the public/BIS PPG and the enterprise/BES PPG the status of
the overall push is ambiguous. Instead, look at the status code in the PushRequestDetail for each
subscriber.
statusDesc - the description of the status codepublic StatusCode getPublicStatusCode()
PushRequestpublic void setPublicStatusCode(StatusCode publicStatusCode)
PushRequest.
publicStatusCode - the push request's status codepublic String getPublicStatusDesc()
PushRequest.
PushRequestpublic void setPublicStatusDesc(String publicStatusDesc)
PushRequest.
publicStatusDesc - the description of the status codepublic StatusCode getEnterpriseStatusCode()
PushRequestpublic void setEnterpriseStatusCode(StatusCode enterpriseStatusCode)
PushRequest.
enterpriseStatusCode - the push request's status codepublic String getEnterpriseStatusDesc()
PushRequestpublic void setEnterpriseStatusDesc(String enterpriseStatusDesc)
PushRequest.
enterpriseStatusDesc - the description of the status codepublic Date getExpiryDate()
public void setExpiryDate(Date expiryDate)
expiryDate - the push request's expiry datepublic String getBearer()
PushService interface.
public void setBearer(String bearer)
PushService interface.
bearer - the bearer associated with the push requestpublic Collection<SubscriberPartial> getSubscribers()
public void setSubscribers(Collection<SubscriberPartial> subscribers)
subscribers - a list of subscriberspublic Integer getAddressCount()
setAddressCount(Integer).
public void setAddressCount(Integer addressCount)
addressCount - a count of addressespublic Long getContentSize()
public void setContentSize(Long contentSize)
contentSize - the content sizepublic Long getTotalContentSize()
public void setTotalContentSize(Long totalContentSize)
totalContentSize - the total content sizepublic Date getCreatedDate()
public void setCreatedDate(Date createdDate)
createdDate - the push request's created datepublic Date getModifiedDate()
public void setModifiedDate(Date modifiedDate)
modifiedDate - the push request's last modified datepublic 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 | |||||||||