|
|
||||||||
| 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.ota.OTAMessage
com.objectxp.msg.ota.ServiceIndication
public class ServiceIndication
The ServiceIndication class represents a OTA Service Indication (SI).
The SI provides a way to inform a user that an event has occurred and indicate a URL that can be loaded in order to react to that event. This is done by sending a SMS to the client that informs the recipient about the event, and a URL from where the appropriate service can be loaded. For example, the message could state that "A new mail has arrived", including the URL of the Web-Email interface.
| Field Summary | |
|---|---|
static java.lang.String |
ACTION_DELETE
|
static java.lang.String |
ACTION_SIGNAL_HIGH
|
static java.lang.String |
ACTION_SIGNAL_LOW
|
static java.lang.String |
ACTION_SIGNAL_MEDIUM
|
static java.lang.String |
ACTION_SIGNAL_NONE
|
| 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 | |
|---|---|
ServiceIndication(java.lang.String content)
Construct a new Service Indication(SI). |
|
ServiceIndication(java.lang.String url,
java.lang.String content)
Construct a new Service Indication (SI). |
|
ServiceIndication(java.lang.String ID,
java.lang.String url,
java.lang.String content)
Construct a new Service-Indication (SI). |
|
| Method Summary | |
|---|---|
void |
setAction(java.lang.String action)
Set the action for this SI. |
void |
setContent(java.lang.String content)
Set the content (message text) for this SI. |
void |
setCreated(java.util.Date date)
Set the creation date for this SI. |
void |
setExpires(java.util.Date date)
Set the expiration date for this SI. |
void |
setID(java.lang.String id)
Set the ID for this SI. |
void |
setURL(java.lang.String url)
Set the URL for this SI. |
| Methods inherited from class com.objectxp.msg.ota.OTAMessage |
|---|
buildParts, buildParts, getParts, toString |
| Methods inherited from class com.objectxp.msg.Message |
|---|
clone, getProperty, getSenderType, getTimestamp, setProperty, setSenderType |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ACTION_SIGNAL_NONE
public static final java.lang.String ACTION_SIGNAL_LOW
public static final java.lang.String ACTION_SIGNAL_MEDIUM
public static final java.lang.String ACTION_SIGNAL_HIGH
public static final java.lang.String ACTION_DELETE
| Constructor Detail |
|---|
public ServiceIndication(java.lang.String ID,
java.lang.String url,
java.lang.String content)
ID - the ID of the SI.url - the URL to indicatecontent - the message text
public ServiceIndication(java.lang.String url,
java.lang.String content)
url - the URL to indicatecontent - the message textpublic ServiceIndication(java.lang.String content)
content - The message text.| Method Detail |
|---|
public void setID(java.lang.String id)
setID in class Messageid - the ID or null.public void setURL(java.lang.String url)
url - the URLpublic void setContent(java.lang.String content)
content - the message textpublic void setAction(java.lang.String action)
ACTION_SIGNAL_MEDIUM.
action - one of: ACTION_SIGNAL_NONE, ACTION_SIGNAL_LOW,
ACTION_SIGNAL_MEDIUM, ACTION_SIGNAL_HIGH, ACTION_DELETEpublic void setCreated(java.util.Date date)
date - the creation date or nullpublic void setExpires(java.util.Date date)
date - the expiration date or null
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||