org.mobicents.protocols.smpp.version
Class SMPPVersion33

java.lang.Object
  extended by org.mobicents.protocols.smpp.version.AbstractSMPPVersion
      extended by org.mobicents.protocols.smpp.version.SMPPVersion33
All Implemented Interfaces:
Serializable, SMPPVersion

public class SMPPVersion33
extends AbstractSMPPVersion

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.mobicents.protocols.smpp.version.SMPPVersion
VERSION_3_3, VERSION_3_4, VERSION_5_0
 
Method Summary
 int getMaxLength(MandatoryParameter mandatoryParameter)
          Get the maximum allowed length for a specified field.
 boolean isSupported(int commandID)
          Determine if this SMPP version supports the specified command.
 boolean isSupportTLV()
          Determine if this SMPP version supports TLVs.
 void validateMessage(byte[] message, int start, int length)
           
 void validateMessageId(String messageId)
           
 void validateNumberOfDests(int num)
           
 void validateParamName(String paramName)
           
 void validateParamValue(String paramValue)
           
 void validatePriorityFlag(int priority)
           
 void validateRegisteredDelivery(int registeredDelivery)
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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.