|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SMPPVersion
Representation of an SMPP version.
| Field Summary | |
|---|---|
static SMPPVersion |
VERSION_3_3
SMPP version 3.3. |
static SMPPVersion |
VERSION_3_4
SMPP version 3.4. |
static SMPPVersion |
VERSION_5_0
SMPP version 5.0. |
| Method Summary | |
|---|---|
boolean |
equals(int versionID)
Determine if the specified versionID matches this
version's ID. |
int |
getMaxLength(MandatoryParameter mandatoryParameter)
Get the maximum allowed length for a specified field. |
int |
getVersionID()
Get an integer value representing this SMPP version. |
boolean |
isNewerThan(SMPPVersion otherVersion)
Determine if this SMPP version is equal to or newer than another version. |
boolean |
isOlderThan(SMPPVersion otherVersion)
Determine if this SMPP version is older than another version. |
boolean |
isSupported(int commandId)
Determine if this SMPP version supports the specified command. |
boolean |
isSupportTLV()
Determine if this SMPP version supports TLVs. |
void |
validateAddress(Address address)
|
void |
validateAddressRange(String addressRange)
|
void |
validateDataCoding(int dc)
|
void |
validateDefaultMsg(int id)
|
void |
validateDistListName(String name)
|
void |
validateErrorCode(int code)
|
void |
validateEsmClass(int c)
|
void |
validateMessage(byte[] message,
int start,
int length)
|
void |
validateMessageId(String id)
|
void |
validateMessageState(int state)
|
void |
validateNpi(int npi)
|
void |
validateNumberOfDests(int num)
|
void |
validateNumUnsuccessful(int num)
|
void |
validateParamName(String paramName)
|
void |
validateParamValue(String paramValue)
|
void |
validatePassword(String password)
|
void |
validatePriorityFlag(int flag)
|
void |
validateProtocolID(int id)
|
void |
validateRegisteredDelivery(int flag)
|
void |
validateReplaceIfPresent(int flag)
|
void |
validateServiceType(String type)
|
void |
validateSystemId(String sysId)
|
void |
validateSystemType(String sysType)
|
void |
validateTon(int ton)
|
| Field Detail |
|---|
static final SMPPVersion VERSION_3_3
static final SMPPVersion VERSION_3_4
static final SMPPVersion VERSION_5_0
| Method Detail |
|---|
int getVersionID()
0x33, version 3.4 is
0x34.
boolean isOlderThan(SMPPVersion otherVersion)
otherVersion - The version to test against.
true if this version is older than
otherVersion, false if it
newer than it.boolean isNewerThan(SMPPVersion otherVersion)
otherVersion - The version to test against.
true if this version is newer than
otherVersion, false if it is equal to or
older than it.boolean equals(int versionID)
versionID matches this
version's ID.
versionID - The version ID to test against.
true if this version's ID matches
versionID.int getMaxLength(MandatoryParameter mandatoryParameter)
mandatoryParameter - The enumerated field identifier to get the
maximum length for.
boolean isSupported(int commandId)
commandId - The command ID of the packet.
true if the command is supported, false
otherwise.boolean isSupportTLV()
true if this version supports TLV parameters,
false otherwise.void validateAddress(Address address)
void validateTon(int ton)
void validateNpi(int npi)
void validateAddressRange(String addressRange)
void validateEsmClass(int c)
void validateProtocolID(int id)
void validateDataCoding(int dc)
void validateDefaultMsg(int id)
void validateMessage(byte[] message,
int start,
int length)
void validateServiceType(String type)
void validateMessageId(String id)
void validateMessageState(int state)
void validateErrorCode(int code)
void validatePriorityFlag(int flag)
void validateRegisteredDelivery(int flag)
void validateReplaceIfPresent(int flag)
void validateNumberOfDests(int num)
void validateNumUnsuccessful(int num)
void validateDistListName(String name)
void validateSystemId(String sysId)
void validatePassword(String password)
void validateSystemType(String sysType)
void validateParamName(String paramName)
void validateParamValue(String paramValue)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||