org.mobicents.protocols.smpp.version
Class SMPPVersion33
java.lang.Object
org.mobicents.protocols.smpp.version.AbstractSMPPVersion
org.mobicents.protocols.smpp.version.SMPPVersion33
- All Implemented Interfaces:
- Serializable, SMPPVersion
public class SMPPVersion33
- extends AbstractSMPPVersion
- See Also:
- Serialized Form
| Methods inherited from class org.mobicents.protocols.smpp.version.AbstractSMPPVersion |
equals, equals, getVersionID, hashCode, isNewerThan, isOlderThan, toString, validateAddress, validateAddressRange, validateDataCoding, validateDefaultMsg, validateDistListName, validateErrorCode, validateEsmClass, validateMessageState, validateNpi, validateNumUnsuccessful, validatePassword, validateProtocolID, validateReplaceIfPresent, validateServiceType, validateSystemId, validateSystemType, validateTon |
isSupported
public boolean isSupported(int commandID)
- Description copied from interface:
SMPPVersion
- Determine if this SMPP version supports the specified command.
- Parameters:
commandID - The command ID of the packet.
- Returns:
true if the command is supported, false
otherwise.
isSupportTLV
public boolean isSupportTLV()
- Description copied from interface:
SMPPVersion
- Determine if this SMPP version supports TLVs. This will
be false for SMPP version 3.3 and true for versions 3.4 and later.
- Returns:
true if this version supports TLV parameters,
false otherwise.
getMaxLength
public int getMaxLength(MandatoryParameter mandatoryParameter)
- Description copied from interface:
SMPPVersion
- Get the maximum allowed length for a specified field.
- Parameters:
mandatoryParameter - The enumerated field identifier to get the
maximum length for.
- Returns:
- The maximum length of the specified field.
validateMessage
public void validateMessage(byte[] message,
int start,
int length)
validateMessageId
public void validateMessageId(String messageId)
validatePriorityFlag
public void validatePriorityFlag(int priority)
validateRegisteredDelivery
public void validateRegisteredDelivery(int registeredDelivery)
validateNumberOfDests
public void validateNumberOfDests(int num)
validateParamName
public void validateParamName(String paramName)
- Specified by:
validateParamName in interface SMPPVersion- Overrides:
validateParamName in class AbstractSMPPVersion
validateParamValue
public void validateParamValue(String paramValue)
- Specified by:
validateParamValue in interface SMPPVersion- Overrides:
validateParamValue in class AbstractSMPPVersion
Copyright © 2011 Mobicents. All Rights Reserved.