|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.objectxp.msg.Message
com.objectxp.msg.SmsMessage
com.objectxp.msg.UcpMessage
public class UcpMessage
This class extends the class SmsMessage with UCP specific properties.
UcpSmsService,
Serialized Form| Field Summary | |
|---|---|
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 |
| 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 |
| Fields inherited from class com.objectxp.msg.Message |
|---|
ACK_TIME, MT_BINARY, MT_STATUS, MT_TEXT, SENDER_TYPE_ALPHA, SENDER_TYPE_GUESS, SENDER_TYPE_NUMBER |
| Constructor Summary | |
|---|---|
UcpMessage()
|
|
UcpMessage(SmsService service)
Deprecated. since jSMS 1.7, use UcpMessage() |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class com.objectxp.msg.Message |
|---|
clone, getProperty, getSenderType, getTimestamp, setID, setProperty, setSenderType |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NT_DN
public static final int NT_ND
public static final int NT_BN
| Constructor Detail |
|---|
public UcpMessage()
public UcpMessage(SmsService service)
UcpMessage()
| Method Detail |
|---|
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
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||