com.objectxp.msg
Class MultipleRecipientMessage
java.lang.Object
com.objectxp.msg.Message
com.objectxp.msg.SmsMessage
com.objectxp.msg.MultipleRecipientMessage
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class MultipleRecipientMessage
- extends SmsMessage
This class may be used to send a SMS to multiple recipients at once. Currently, only the UcpSmsService supports
multiple recipients. If you pass a MultipleRecipientMessage to other SmsService implementations, the message
will be sent to the first recipient only.
- See Also:
- Serialized Form
| Fields inherited from class com.objectxp.msg.SmsMessage |
CLASS_0, CLASS_1, CLASS_2, CLASS_3, DC_8BIT, DC_DEFAULT, DC_GROUP_DATA, DC_GROUP_GENERAL, DC_GROUP_MSG_WAITING_DISCARD, DC_GROUP_MSG_WAITING_STORE, DC_UCS2, INDICATION_ACTIVE, INDICATION_INACTIVE, INDICATION_TYPE_EMAIL, INDICATION_TYPE_FAX, INDICATION_TYPE_OTHER, INDICATION_TYPE_VOICEMAIL, NO_CLASS |
|
Method Summary |
java.lang.String |
getMessageId(java.lang.String recipient)
Gets the message ID of the submited message for the specified destination address. |
java.lang.String |
getRecipient()
Get the recipient of this message. |
java.util.Enumeration |
getRecipients()
Gets recipient list. |
void |
setRecipient(java.lang.String address)
Add the address to the recipient list. |
| Methods inherited from class com.objectxp.msg.SmsMessage |
containsUserDataHeader, copyFields, getAlphabet, getBytes, getCodingGroup, getDeferredDeliveryAsDate, getDeferredDeliveryInMinutes, getID, getIndicationState, getIndicationType, getMessage, getMessageClass, getParent, getPID, getRecipientAddress, getSender, getSenderAddress, getType, getUserData, getUserDataHeader, getValidityPeriodAsDate, getValidityPeriodInMinutes, hasDeferredDelivery, hasMessageClass, hasValidityPeriod, isCompressed, isMMS, isRejectDuplicates, isRelativeDeferredDelivery, isRelativeValidityPeriod, isReplyPath, requestStatusReport, requestStatusReport, setAlphabet, setCodingGroup, setCompression, setDeferredDelivery, setDeferredDelivery, setIndicationState, setIndicationType, setMessage, setMessage, setMessageClass, setMMS, setParent, setPID, setRecipientAddress, setRejectDuplicates, setReplyPath, setSender, setSenderAddress, setType, setUserData, setUserDataHeader, setUserDataHeader, setValidityPeriod, setValidityPeriod, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MultipleRecipientMessage
public MultipleRecipientMessage()
setRecipient
public void setRecipient(java.lang.String address)
- Add the address to the recipient list.
- Overrides:
setRecipient in class SmsMessage
- Parameters:
address - the address to add
getRecipients
public java.util.Enumeration getRecipients()
- Gets recipient list.
- Returns:
- An enumeration over the recipient list.
getRecipient
public java.lang.String getRecipient()
- Description copied from class:
SmsMessage
- Get the recipient of this message.
- Overrides:
getRecipient in class SmsMessage
- Returns:
- the recipient
- See Also:
SmsMessage.getRecipientAddress()
getMessageId
public java.lang.String getMessageId(java.lang.String recipient)
- Gets the message ID of the submited message for the specified destination address.
- Parameters:
recipient - the destination address
- Returns:
- the message ID or null when the message has not been sent to the specified recipient address
object XP, Inc. © 2000-2008. All rights reserved object XP