|
||||||||||
| 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.PushMessageControl
public class PushMessageControl
Represents the Push 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 | |
|---|---|
PushMessageControl()
Deprecated. As of release 1.1, replaced by the PushMessageControl(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. |
|
PushMessageControl(boolean usingPublicPush)
Constructs a push message control for either a public (BIS) push or an enterprise (BES) push. |
|
PushMessageControl(boolean usingPublicPush,
IdGenerator pushIdGenerator,
String username)
Same behaviour as PushMessageControl(boolean, IdGenerator, String, List but with a PUSH_ALL for the
address. |
|
PushMessageControl(boolean usingPublicPush,
IdGenerator pushIdGenerator,
String username,
List<String> addresses)
Constructs a push message control, for either a public (BIS) push or an enterprise (BES) push, with the following defaulted values: replacePushId, replaceMethod, deliverAfterTimestamp defaulted to null (see the
PAP spec for more details about the meaning of these fields)
progressNotesRequested defaulted to false
sourceReference set to the specified username
a configurable default expiry time for the push
no result notifications are sent
a quality of service with a delivery method of unconfirmed
the address list set to the list of addresses specified
|
|
PushMessageControl(boolean usingPublicPush,
IdGenerator pushIdGenerator,
String username,
String ppgNotifyRequestedTo)
Same behaviour as PushMessageControl(boolean, IdGenerator, String, String, List but with a PUSH_ALL
for the address. |
|
PushMessageControl(boolean usingPublicPush,
IdGenerator pushIdGenerator,
String username,
String ppgNotifyRequestedTo,
List<String> addresses)
Constructs a push message control, for either a public (BIS) push or an enterprise (BES) push, with the following defaulted values: replacePushId, replaceMethod, deliverAfterTimestamp defaulted to null (see the
PAP spec for more details about the meaning of these fields)
progressNotesRequested defaulted to false
sourceReference set to the specified username
a configurable default expiry time for the push
result notifications are sent
a quality of service with a delivery method of confirmed
the address list set to the list of addresses specified
|
|
PushMessageControl(IdGenerator pushIdGenerator,
String username)
Deprecated. As of release 1.1, replaced by the PushMessageControl(boolean, IdGenerator, 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. |
|
PushMessageControl(IdGenerator pushIdGenerator,
String username,
List<String> addresses)
Deprecated. As of release 1.1, replaced by the PushMessageControl(boolean, IdGenerator, 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. |
|
PushMessageControl(IdGenerator pushIdGenerator,
String username,
String ppgNotifyRequestedTo)
Deprecated. As of release 1.1, replaced by the PushMessageControl(boolean, IdGenerator, String, 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. |
|
PushMessageControl(IdGenerator pushIdGenerator,
String username,
String ppgNotifyRequestedTo,
List<String> addresses)
Deprecated. As of release 1.1, replaced by the PushMessageControl(boolean, IdGenerator, String, 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 push message control. |
Date |
getDefaultDeliverBeforeTimestamp()
Returns the default deliver before timestamp (expiry date). |
Date |
getDeliverBeforeTimestamp()
Gets the deliver before timestamp (expiry date) associated with the push message control. |
String |
getPpgNotifyRequestedTo()
Gets the notification URL (possibly a fragment) associated with the push message control. |
String |
getPushId()
Gets the push id associated with the push message control. |
QualityOfService |
getQualityOfService()
Gets the quality of service associated with the push message control. |
String |
getSourceReference()
Gets the source reference associated with the push 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 push message control. |
void |
setDeliverBeforeTimestamp(Date deliverBeforeTimestamp)
Sets the deliver before timestamp (expiry date) associated with the push message control. |
void |
setPpgNotifyRequestedTo(String ppgNotifyRequestedTo)
Sets the notification URL (possibly a fragment) associated with the push message control. |
void |
setPushId(String pushId)
Sets the push id associated with the push message control. |
void |
setQualityOfService(QualityOfService qualityOfService)
Sets the quality of service associated with the push message control. |
void |
setSourceReference(String sourceReference)
Sets the source reference associated with the push 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 and passes validation - if the deliver before timestamp is set, it should be in the future - a source reference is specified for a public (BIS) push - a quality of service is specified for a public (BIS) push - if a quality of service is specified, it should pass its own 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 PushMessageControl()
PushMessageControl(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 PushMessageControl(boolean usingPublicPush)
usingPublicPush - true if configuring for a public (BIS) push; false otherwise
@Deprecated
public PushMessageControl(IdGenerator pushIdGenerator,
String username,
List<String> addresses)
PushMessageControl(boolean, IdGenerator, 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.
replacePushId, replaceMethod, deliverAfterTimestamp defaulted to null (see the
PAP spec for more details about the meaning of these fields)progressNotesRequested defaulted to falsesourceReference set to the specified username
pushIdGenerator - the Id Generator to use to generate a unique push idusername - the unique id of the Push Initiatoraddresses - a list of addresses to push to
public PushMessageControl(boolean usingPublicPush,
IdGenerator pushIdGenerator,
String username,
List<String> addresses)
replacePushId, replaceMethod, deliverAfterTimestamp defaulted to null (see the
PAP spec for more details about the meaning of these fields)progressNotesRequested defaulted to falsesourceReference set to the specified username
usingPublicPush - true if configuring for a public (BIS) push; false otherwisepushIdGenerator - the Id Generator to use to generate a unique push idusername - the unique id of the Push Initiatoraddresses - a list of addresses to push to
@Deprecated
public PushMessageControl(IdGenerator pushIdGenerator,
String username)
PushMessageControl(boolean, IdGenerator, 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.
PushMessageControl(IdGenerator, String, List) but with a PUSH_ALL for the address.
pushIdGenerator - the Push Id Generator to use to generate a unique push idusername - the unique id of the Push Initiator
public PushMessageControl(boolean usingPublicPush,
IdGenerator pushIdGenerator,
String username)
PushMessageControl(boolean, IdGenerator, String, List) but with a PUSH_ALL for the
address.
usingPublicPush - true if configuring for a public (BIS) push; false otherwisepushIdGenerator - the Push Id Generator to use to generate a unique push idusername - the unique id of the Push Initiator
@Deprecated
public PushMessageControl(IdGenerator pushIdGenerator,
String username,
String ppgNotifyRequestedTo,
List<String> addresses)
PushMessageControl(boolean, IdGenerator, String, 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.
replacePushId, replaceMethod, deliverAfterTimestamp defaulted to null (see the
PAP spec for more details about the meaning of these fields)progressNotesRequested defaulted to falsesourceReference set to the specified username
pushIdGenerator - the Id Generator to use to generate a unique push idusername - the unique id of the Push InitiatorppgNotifyRequestedTo - context part of the URL for result notificationsaddresses - a list of addresses to push to
public PushMessageControl(boolean usingPublicPush,
IdGenerator pushIdGenerator,
String username,
String ppgNotifyRequestedTo,
List<String> addresses)
replacePushId, replaceMethod, deliverAfterTimestamp defaulted to null (see the
PAP spec for more details about the meaning of these fields)progressNotesRequested defaulted to falsesourceReference set to the specified username
usingPublicPush - true if configuring for a public (BIS) push; false otherwisepushIdGenerator - the Id Generator to use to generate a unique push idusername - the unique id of the Push InitiatorppgNotifyRequestedTo - context part of the URL for result notificationsaddresses - a list of addresses to push to
@Deprecated
public PushMessageControl(IdGenerator pushIdGenerator,
String username,
String ppgNotifyRequestedTo)
PushMessageControl(boolean, IdGenerator, String, 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.
PushMessageControl(IdGenerator, String, String, List) but with a PUSH_ALL for the
address.
pushIdGenerator - the Id Generator to use to generate a unique push idusername - the unique id of the Push InitiatorppgNotifyRequestedTo - context part of the URL for result notifications
public PushMessageControl(boolean usingPublicPush,
IdGenerator pushIdGenerator,
String username,
String ppgNotifyRequestedTo)
PushMessageControl(boolean, IdGenerator, String, String, List) but with a PUSH_ALL
for the address.
usingPublicPush - true if configuring for a public (BIS) push; false otherwisepushIdGenerator - the Id Generator to use to generate a unique push idusername - the unique id of the Push InitiatorppgNotifyRequestedTo - context part of the URL for result notifications| Method Detail |
|---|
public Date getDefaultDeliverBeforeTimestamp()
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 idpublic Date getDeliverBeforeTimestamp()
public void setDeliverBeforeTimestamp(Date deliverBeforeTimestamp)
deliverBeforeTimestamp - the deliver before timestamp (expiry date)public String getSourceReference()
public void setSourceReference(String sourceReference)
sourceReference - the source referencepublic String getPpgNotifyRequestedTo()
public void setPpgNotifyRequestedTo(String ppgNotifyRequestedTo)
ppgNotifyRequestedTo - the notification URL@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 QualityOfService getQualityOfService()
public void setQualityOfService(QualityOfService qualityOfService)
qualityOfService - the quality of servicepublic 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 | |||||||||