|
||||||||||
| 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.CancelMessageControl
public class CancelMessageControl
Represents the Cancel PAP request message control (XML).
| Field Summary |
|---|
| 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 | |
|---|---|
CancelMessageControl()
Deprecated. As of release 1.1, replaced by CancelMessageControl(boolean) constructor instead. To use this
constructor, you must configure the SDK to be in public or enterprise mode through the PushSDK.properties file
by setting the use.public.push flag. |
|
CancelMessageControl(boolean usingPublicPush)
Constructs a cancel message control for either a public (BIS) push or an enterprise (BES) push. |
|
CancelMessageControl(boolean usingPublicPush,
String pushId)
Constructs a cancel message control for either a public (BIS) push or an enterprise (BES) push with the given push id. |
|
CancelMessageControl(boolean usingPublicPush,
String pushId,
List<String> addresses)
Constructs a cancel message control for either a public (BIS) push or an enterprise (BES) push with the given push id and the list of addresses. |
|
CancelMessageControl(String pushId)
Deprecated. As of release 1.1, replaced by CancelMessageControl(boolean, String) constructor instead. To use this
constructor, you must configure the SDK to be in public or enterprise mode through the PushSDK.properties file
by setting the use.public.push flag. |
|
CancelMessageControl(String pushId,
List<String> addresses)
Deprecated. As of release 1.1, replaced by CancelMessageControl(boolean, String, List) constructor instead. To use
this constructor, you must configure the SDK to be in public or enterprise mode through the PushSDK.properties
file by setting the use.public.push flag. |
|
| Method Summary | |
|---|---|
AddressList |
getAddresses()
Deprecated. As of release 1.1, replaced by getAddressList(). |
List<String> |
getAddressList()
Gets the list of addresses associated with the cancel message control. |
String |
getPushId()
Gets the push id associated with the cancel message control. |
void |
setAddresses(AddressList addresses)
Deprecated. As of release 1.1, replaced by setAddressList(List). |
void |
setAddressList(List<String> addresses)
Sets the address list associated with the cancel message control. |
void |
setPushId(String pushId)
Sets the push id associated with the cancel message 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 list is not null or empty |
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 |
| Constructor Detail |
|---|
@Deprecated public CancelMessageControl()
CancelMessageControl(boolean) constructor instead. To use this
constructor, you must configure the SDK to be in public or enterprise mode through the PushSDK.properties file
by setting the use.public.push flag.
@Deprecated public CancelMessageControl(String pushId)
CancelMessageControl(boolean, String) constructor instead. To use this
constructor, you must configure the SDK to be in public or enterprise mode through the PushSDK.properties file
by setting the use.public.push flag.
pushId - the id of the push to be cancelled
@Deprecated
public CancelMessageControl(String pushId,
List<String> addresses)
CancelMessageControl(boolean, String, List) constructor instead. To use
this constructor, you must configure the SDK to be in public or enterprise mode through the PushSDK.properties
file by setting the use.public.push flag.
pushId - the id of the push to be cancelledaddresses - the list of addresses to cancel the push forpublic CancelMessageControl(boolean usingPublicPush)
usingPublicPush - true if configuring for a public (BIS) push; false otherwise
public CancelMessageControl(boolean usingPublicPush,
String pushId)
usingPublicPush - true if configuring for a public (BIS) push; false otherwisepushId - the id of the push to be cancelled
public CancelMessageControl(boolean usingPublicPush,
String pushId,
List<String> addresses)
usingPublicPush - true if configuring for a public (BIS) push; false otherwisepushId - the id of the push to be cancelledaddresses - the list of addresses to cancel the push for| 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 streampublic String getPushId()
public void setPushId(String pushId)
pushId - the push id@Deprecated public AddressList getAddresses()
getAddressList().
public List<String> getAddressList()
@Deprecated public void setAddresses(AddressList addresses)
setAddressList(List).
addresses - the address listpublic void setAddressList(List<String> addresses)
addresses - the address listpublic String toString()
String with all attributes in name = value format.
toString in class ObjectString representation of this object.protected void validate()
validate in class PapControl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||