|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.protocols.smpp.version.AbstractSMPPVersion
public abstract class AbstractSMPPVersion
Class representing an SMPP protocol version. Instances of this object are used by the rest of the API to determine is an SMPP message is supported by a certain version of the protocol.
| Field Summary |
|---|
| Fields inherited from interface org.mobicents.protocols.smpp.version.SMPPVersion |
|---|
VERSION_3_3, VERSION_3_4, VERSION_5_0 |
| Constructor Summary | |
|---|---|
protected |
AbstractSMPPVersion(int versionID,
String versionString)
Create a new SMPPVersion object. |
| Method Summary | |
|---|---|
boolean |
equals(int versionID)
Determine if the specified versionID matches this
version's ID. |
boolean |
equals(Object obj)
|
int |
getVersionID()
Get an integer value representing this SMPP version. |
int |
hashCode()
|
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. |
String |
toString()
|
void |
validateAddress(Address address)
|
void |
validateAddressRange(String addressRange)
|
void |
validateDataCoding(int dataCoding)
|
void |
validateDefaultMsg(int defaultMsgId)
|
void |
validateDistListName(String name)
|
void |
validateErrorCode(int code)
|
void |
validateEsmClass(int esmClass)
|
void |
validateMessageState(int messageState)
|
void |
validateNpi(int npi)
|
void |
validateNumUnsuccessful(int num)
|
void |
validateParamName(String paramName)
|
void |
validateParamValue(String paramValue)
|
void |
validatePassword(String password)
|
void |
validateProtocolID(int protocolId)
|
void |
validateReplaceIfPresent(int flag)
|
void |
validateServiceType(String serviceType)
|
void |
validateSystemId(String sysId)
|
void |
validateSystemType(String sysType)
|
void |
validateTon(int ton)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mobicents.protocols.smpp.version.SMPPVersion |
|---|
getMaxLength, isSupported, isSupportTLV, validateMessage, validateMessageId, validateNumberOfDests, validatePriorityFlag, validateRegisteredDelivery |
| Constructor Detail |
|---|
protected AbstractSMPPVersion(int versionID,
String versionString)
| Method Detail |
|---|
public int getVersionID()
SMPPVersion0x33, version 3.4 is
0x34.
getVersionID in interface SMPPVersionpublic boolean isOlderThan(SMPPVersion otherVersion)
SMPPVersion
isOlderThan in interface SMPPVersionotherVersion - The version to test against.
true if this version is older than
otherVersion, false if it
newer than it.public boolean isNewerThan(SMPPVersion otherVersion)
SMPPVersion
isNewerThan in interface SMPPVersionotherVersion - The version to test against.
true if this version is newer than
otherVersion, false if it is equal to or
older than it.public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(int versionID)
SMPPVersionversionID matches this
version's ID.
equals in interface SMPPVersionversionID - The version ID to test against.
true if this version's ID matches
versionID.public String toString()
toString in class Objectpublic void validateTon(int ton)
validateTon in interface SMPPVersionpublic void validateNpi(int npi)
validateNpi in interface SMPPVersionpublic void validateAddress(Address address)
validateAddress in interface SMPPVersionpublic void validateEsmClass(int esmClass)
validateEsmClass in interface SMPPVersionpublic void validateProtocolID(int protocolId)
validateProtocolID in interface SMPPVersionpublic void validateDataCoding(int dataCoding)
validateDataCoding in interface SMPPVersionpublic void validateDefaultMsg(int defaultMsgId)
validateDefaultMsg in interface SMPPVersionpublic void validateServiceType(String serviceType)
validateServiceType in interface SMPPVersionpublic void validateMessageState(int messageState)
validateMessageState in interface SMPPVersionpublic void validateErrorCode(int code)
validateErrorCode in interface SMPPVersionpublic void validateReplaceIfPresent(int flag)
validateReplaceIfPresent in interface SMPPVersionpublic void validateNumUnsuccessful(int num)
validateNumUnsuccessful in interface SMPPVersionpublic void validateDistListName(String name)
validateDistListName in interface SMPPVersionpublic void validateSystemId(String sysId)
validateSystemId in interface SMPPVersionpublic void validatePassword(String password)
validatePassword in interface SMPPVersionpublic void validateSystemType(String sysType)
validateSystemType in interface SMPPVersionpublic void validateAddressRange(String addressRange)
validateAddressRange in interface SMPPVersionpublic void validateParamName(String paramName)
validateParamName in interface SMPPVersionpublic void validateParamValue(String paramValue)
validateParamValue in interface SMPPVersion
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||