public class MultipleRecipientMessage extends SmsMessage
UcpSmsService
supports
multiple recipients. If you pass a MultipleRecipientMessage to other SmsService implementations, the message
will be sent to the first recipient only.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
ACK_TIME, MT_BINARY, MT_STATUS, MT_TEXT, SENDER_TYPE_ALPHA, SENDER_TYPE_GUESS, SENDER_TYPE_NUMBER
Constructor and Description |
---|
MultipleRecipientMessage() |
Modifier and Type | Method and Description |
---|---|
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.
|
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
clone, getProperty, getSenderType, getTimestamp, setID, setProperty, setSenderType
public void setRecipient(java.lang.String address)
setRecipient
in class SmsMessage
address
- the address to addpublic java.util.Enumeration getRecipients()
public java.lang.String getRecipient()
SmsMessage
getRecipient
in class SmsMessage
SmsMessage.getRecipientAddress()
public java.lang.String getMessageId(java.lang.String recipient)
recipient
- the destination addressobject XP, Inc. © 2000-2013. All rights reserved object XP