|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.objectxp.msg.SmppStatus
public class SmppStatus
This class is a representation of a SMPP Delivery Receipt. It is used in conjunction with SMS status reports.
SmsMessage.requestStatusReport(boolean),
StatusReportMessage.getStatus(),
Serialized Form| Field Summary | |
|---|---|
static int |
STATE_ACCEPTED
Message is in accepted state. |
static int |
STATE_DELETED
Message has been deleted. |
static int |
STATE_DELIVERED
Message is delivered to destination |
static int |
STATE_ENROUTE
The message is in enroute state. |
static int |
STATE_EXPIRED
Message validity period has expired. |
static int |
STATE_REJECTED
Message is in a rejected state. |
static int |
STATE_SCHEDULED
The message is scheduled. |
static int |
STATE_SKIPPED
The message was accepted but not transmitted on the network. |
static int |
STATE_UNDELIVERABLE
Message is undeliverable. |
static int |
STATE_UNKNOWN
Message is in unknown state. |
| Constructor Summary | |
|---|---|
SmppStatus(int messageState,
int networkType,
int errorCode)
Construct a new SMPP Status. |
|
| Method Summary | |
|---|---|
java.util.Date |
getDischargeTime()
Get the time at which a previously submitted SMS was successfully delivered to or attempted to deliver to the recipient or disposed of by the SMSC. |
int |
getErrorCode()
Returns the error code or -1 if not set |
int |
getMessageState()
Returns the Message State. |
int |
getNetworkType()
Returns the network type or -1 if not set |
SmppOptionalParameter |
getOptionalParameter(int tag)
Get a TLV associated with this SMPP Status. |
java.util.Enumeration |
getOptionalParameters()
Returns an enumeration of SMPPOptionalParameter objects associated. |
boolean |
hasOptionalParameters()
Returns true if this Object has optional Parameters (TLV) associated. |
boolean |
isCancelled()
Returns true if the indicated message has been cancelled by a previous call to SmsService.cancel(Message). |
boolean |
isDeleted()
Returns true if the indicated message has been deleted. |
boolean |
isDelivered()
Check if the Message has been sent sucessfuly. |
boolean |
isPermanentError()
Returns true if a permanent error has occurred. |
java.lang.String |
toString()
Constructs a string representation of this object |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int STATE_SCHEDULED
public static final int STATE_ENROUTE
public static final int STATE_DELIVERED
public static final int STATE_EXPIRED
public static final int STATE_DELETED
public static final int STATE_UNDELIVERABLE
public static final int STATE_ACCEPTED
public static final int STATE_UNKNOWN
public static final int STATE_REJECTED
public static final int STATE_SKIPPED
| Constructor Detail |
|---|
public SmppStatus(int messageState,
int networkType,
int errorCode)
messageState - the message state.networkType - the network typeerrorCode - the network error code| Method Detail |
|---|
public boolean isDelivered()
SmsStatus
isDelivered in interface SmsStatuspublic boolean isPermanentError()
isPermanentError in interface SmsStatuspublic int getMessageState()
public int getNetworkType()
public int getErrorCode()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Date getDischargeTime()
SmsStatus
getDischargeTime in interface SmsStatuspublic boolean isCancelled()
SmsStatusSmsService.cancel(Message).
isCancelled in interface SmsStatuspublic boolean isDeleted()
SmsStatus
isDeleted in interface SmsStatuspublic SmppOptionalParameter getOptionalParameter(int tag)
tag - the TLV tag
public java.util.Enumeration getOptionalParameters()
public boolean hasOptionalParameters()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||