public class UcpMessage extends SmsMessage
UcpSmsService
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
NT_BN
Notification type: Buffered Notification
|
static int |
NT_DN
Notification type: Delivery Notification
|
static int |
NT_ND
Notification type: Non Delivery Notification
|
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 |
---|
UcpMessage() |
UcpMessage(SmsService service)
Deprecated.
since jSMS 1.7, use
UcpMessage() |
Modifier and Type | Method and Description |
---|---|
void |
deleteExtraServices()
Remove all additional services (XSer field) for this Message.
|
java.util.Date |
getDeferredDelivery()
Deprecated.
since jSMS 1.6, use
SmsMessage.getDeferredDeliveryAsDate() instead. |
byte[] |
getExtraService(short typeOfService)
Get additional service (XSer) for this message.
|
short[] |
getExtraServiceTypes()
Gets all additional service (XSer) types for this message.
|
java.lang.String |
getNotificationAddress() |
int |
getNotificationType() |
void |
setExtraService(short typeOfService,
byte[] data)
Set additional services (XSer) for this message.
|
void |
setNotificationAddress(java.lang.String address)
Sets the notification address.
|
void |
setNotificationType(int type)
Sets the notification type.
|
java.lang.String |
toString()
Constructs a string representation of this Message
|
containsUserDataHeader, copyFields, getAlphabet, getBytes, getCodingGroup, getDeferredDeliveryAsDate, getDeferredDeliveryInMinutes, getID, getIndicationState, getIndicationType, getMessage, getMessageClass, getParent, getPID, getRecipient, 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, setRecipient, setRecipientAddress, setRejectDuplicates, setReplyPath, setSender, setSenderAddress, setType, setUserData, setUserDataHeader, setUserDataHeader, setValidityPeriod, setValidityPeriod
clone, getProperty, getSenderType, getTimestamp, setID, setProperty, setSenderType
public static final int NT_DN
public static final int NT_ND
public static final int NT_BN
public UcpMessage()
public UcpMessage(SmsService service)
UcpMessage()
public java.util.Date getDeferredDelivery()
SmsMessage.getDeferredDeliveryAsDate()
instead.public void setExtraService(short typeOfService, byte[] data) throws java.lang.IllegalArgumentException
typeOfService
- the XSer Type of service. Refer to the UCP
specification for more details about the available service types.data
- the data elements for this service. If data is null, the
service will be removed from this message. The data must NOT be
IRA (hex) encoded since UcpMessage will care about hex-encoding your
data. For services requiring zero data elements, a empty byte
array must be passed to this method.java.lang.IllegalArgumentException
- if type of Service is lower than 3
or higher than 255, or if the data length exceeds 255 octets.public void deleteExtraServices()
public byte[] getExtraService(short typeOfService)
typeOfService
- the XSer Type of service. Refer to the UCP
specification for more details about the available service types.public short[] getExtraServiceTypes()
public void setNotificationAddress(java.lang.String address)
address
- the notification addresspublic void setNotificationType(int type)
type
- notification typepublic int getNotificationType()
setNotificationType(int)
public java.lang.String getNotificationAddress()
setNotificationAddress(String)
public java.lang.String toString()
Message
toString
in class SmsMessage
object XP, Inc. © 2000-2013. All rights reserved object XP