Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
SmppStatus(int messageState,
int networkType,
int errorCode)
Construct a new SMPP Status.
|
Modifier and Type | Method and Description |
---|---|
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
|
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
public SmppStatus(int messageState, int networkType, int errorCode)
messageState
- the message state.networkType
- the network typeerrorCode
- the network error codepublic boolean isDelivered()
SmsStatus
isDelivered
in interface SmsStatus
public boolean isPermanentError()
isPermanentError
in interface SmsStatus
public int getMessageState()
public int getNetworkType()
public int getErrorCode()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Date getDischargeTime()
SmsStatus
getDischargeTime
in interface SmsStatus
public boolean isCancelled()
SmsStatus
SmsService.cancel(Message)
.isCancelled
in interface SmsStatus
public boolean isDeleted()
SmsStatus
public SmppOptionalParameter getOptionalParameter(int tag)
tag
- the TLV tagpublic java.util.Enumeration getOptionalParameters()
public boolean hasOptionalParameters()
object XP, Inc. © 2000-2013. All rights reserved object XP