|
||||||||||
| 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.StatusQueryMessageControl
public class StatusQueryMessageControl
Represents the Status Query 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 | |
|---|---|
StatusQueryMessageControl()
Deprecated. As of release 1.1, replaced by the StatusQueryMessageControl(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. |
|
StatusQueryMessageControl(boolean usingPublicPush)
Constructs a status query message control to query either a public (BIS) push or an enterprise (BES) push. |
|
StatusQueryMessageControl(boolean usingPublicPush,
String pushId)
Constructs a status query message control, to query either a public (BIS) push or an enterprise (BES) push, with the given push id. |
|
StatusQueryMessageControl(boolean usingPublicPush,
String pushId,
List<String> addresses)
Constructs a status query message control, to query either a public (BIS) push or an enterprise (BES) push, with the given push id and the list of addresses. |
|
StatusQueryMessageControl(String pushId)
Deprecated. As of release 1.1, replaced by the StatusQueryMessageControl(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. |
|
StatusQueryMessageControl(String pushId,
List<String> addresses)
Deprecated. As of release 1.1, replaced by the StatusQueryMessageControl(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 status query message control. |
String |
getPushId()
Gets the push id associated with the status query 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 status query message control. |
void |
setPushId(String pushId)
Sets the push id associated with the status query 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) - if the address list is specified, it passes validation |
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 StatusQueryMessageControl()
StatusQueryMessageControl(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.
public StatusQueryMessageControl(boolean usingPublicPush)
usingPublicPush - true if configuring for a public (BIS) push; false otherwise@Deprecated public StatusQueryMessageControl(String pushId)
StatusQueryMessageControl(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 use in the status query
public StatusQueryMessageControl(boolean usingPublicPush,
String pushId)
usingPublicPush - true if configuring for a public (BIS) push; false otherwisepushId - the id of the push to use in the status query
@Deprecated
public StatusQueryMessageControl(String pushId,
List<String> addresses)
StatusQueryMessageControl(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 use in the status queryaddresses - the list of addresses to query for
public StatusQueryMessageControl(boolean usingPublicPush,
String pushId,
List<String> addresses)
usingPublicPush - true if configuring for a public (BIS) push; false otherwisepushId - the id of the push to use in the status queryaddresses - the list of addresses to query 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 | |||||||||