public class ServiceIndication extends OTAMessage
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.
Modifier and Type | Field and Description |
---|---|
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 |
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 |
---|
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).
|
Modifier and Type | Method and Description |
---|---|
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.
|
buildParts, buildParts, getParts, getTimestamp, toString
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, setProperty, setSenderType
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
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 textpublic 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.public void setID(java.lang.String id)
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_DELETE
public void setCreated(java.util.Date date)
date
- the creation date or nullpublic void setExpires(java.util.Date date)
date
- the expiration date or nullobject XP, Inc. © 2000-2013. All rights reserved object XP