ie.omk.smpp.version
Class SMPPVersion34

java.lang.Object
  extended by ie.omk.smpp.version.SMPPVersion
      extended by ie.omk.smpp.version.SMPPVersion34

public class SMPPVersion34
extends SMPPVersion


Field Summary
 
Fields inherited from class ie.omk.smpp.version.SMPPVersion
MESSAGE_PAYLOAD, V33, V34
 
Method Summary
 int getMaxLength(int field)
          Get the maximum allowed length for a particular field.
 boolean isSupported(int commandID)
          Determine if a particular command is supported by this protocol version.
 boolean isSupportOptionalParams()
          Determine if this SMPP version supports optional parameters.
 boolean validateAddress(Address s)
          Validate and SMPP address for this SMPP version number.
 boolean validateAddressRange(String addressRange)
           
 boolean validateDataCoding(int dc)
          Validate the data coding mandatory parameter.
 boolean validateDefaultMsg(int id)
          Validate the default message ID mandatory parameter.
 boolean validateDistListName(String name)
           
 boolean validateErrorCode(int code)
          Validate the error code mandatory parameter.
 boolean validateEsmClass(int c)
          Validate the ESM class mandatory parameter.
 boolean validateMessage(byte[] message, MessageEncoding encoding)
          Validate the length of the message bytes.
 boolean validateMessageId(String id)
          Validate the message ID mandatory parameter.
 boolean validateMessageState(int st)
          Validate the message state mandatory parameter.
 boolean validateMessageText(String text, AlphabetEncoding alphabet)
          Validate the message text length.
 boolean validateNumberOfDests(int num)
           
 boolean validateNumUnsuccessful(int num)
           
 boolean validateParamName(String paramName)
           
 boolean validateParamValue(String paramValue)
           
 boolean validatePassword(String password)
           
 boolean validatePriorityFlag(int flag)
           
 boolean validateProtocolID(int id)
          Validate the Protocol ID mandatory parameter.
 boolean validateRegisteredDelivery(int flag)
           
 boolean validateReplaceIfPresent(int flag)
           
 boolean validateServiceType(String type)
          Validate the service type mandatory parameter.
 boolean validateSystemId(String sysId)
           
 boolean validateSystemType(String sysType)
           
 
Methods inherited from class ie.omk.smpp.version.SMPPVersion
equals, equals, getDefaultVersion, getVersion, getVersionID, hashCode, isNewer, isOlder, toString, validateMessageStatus
 
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 class: SMPPVersion
Determine if a particular command is supported by this protocol version. This method takes any valid SMPP command ID (for both requests and responses) and returns true or false based on whether the protocol version this object represents supports that command or not.

Specified by:
isSupported in class SMPPVersion
Parameters:
commandID - the SMPP command ID to check support for.

isSupportOptionalParams

public boolean isSupportOptionalParams()
Description copied from class: SMPPVersion
Determine if this SMPP version supports optional parameters.

Specified by:
isSupportOptionalParams in class SMPPVersion
Returns:
true if optional parameters are supported, false if they are not.

getMaxLength

public int getMaxLength(int field)
Description copied from class: SMPPVersion
Get the maximum allowed length for a particular field.

Specified by:
getMaxLength in class SMPPVersion

validateAddress

public boolean validateAddress(Address s)
Description copied from class: SMPPVersion
Validate and SMPP address for this SMPP version number.

Specified by:
validateAddress in class SMPPVersion

validateEsmClass

public boolean validateEsmClass(int c)
Description copied from class: SMPPVersion
Validate the ESM class mandatory parameter.

Specified by:
validateEsmClass in class SMPPVersion

validateProtocolID

public boolean validateProtocolID(int id)
Description copied from class: SMPPVersion
Validate the Protocol ID mandatory parameter.

Specified by:
validateProtocolID in class SMPPVersion

validateDataCoding

public boolean validateDataCoding(int dc)
Description copied from class: SMPPVersion
Validate the data coding mandatory parameter.

Specified by:
validateDataCoding in class SMPPVersion

validateDefaultMsg

public boolean validateDefaultMsg(int id)
Description copied from class: SMPPVersion
Validate the default message ID mandatory parameter.

Specified by:
validateDefaultMsg in class SMPPVersion

validateMessageText

public boolean validateMessageText(String text,
                                   AlphabetEncoding alphabet)
Description copied from class: SMPPVersion
Validate the message text length.

Specified by:
validateMessageText in class SMPPVersion

validateMessage

public boolean validateMessage(byte[] message,
                               MessageEncoding encoding)
Description copied from class: SMPPVersion
Validate the length of the message bytes.

Specified by:
validateMessage in class SMPPVersion

validateServiceType

public boolean validateServiceType(String type)
Description copied from class: SMPPVersion
Validate the service type mandatory parameter.

Specified by:
validateServiceType in class SMPPVersion

validateMessageId

public boolean validateMessageId(String id)
Description copied from class: SMPPVersion
Validate the message ID mandatory parameter.

Specified by:
validateMessageId in class SMPPVersion

validateMessageState

public boolean validateMessageState(int st)
Description copied from class: SMPPVersion
Validate the message state mandatory parameter. The message state and message status are the same. The name of the parameter changed between version 3.3 and version 3.4. The semantics, however, remain the same.

Specified by:
validateMessageState in class SMPPVersion

validateErrorCode

public boolean validateErrorCode(int code)
Description copied from class: SMPPVersion
Validate the error code mandatory parameter.

Specified by:
validateErrorCode in class SMPPVersion

validatePriorityFlag

public boolean validatePriorityFlag(int flag)
Specified by:
validatePriorityFlag in class SMPPVersion

validateRegisteredDelivery

public boolean validateRegisteredDelivery(int flag)
Specified by:
validateRegisteredDelivery in class SMPPVersion

validateReplaceIfPresent

public boolean validateReplaceIfPresent(int flag)
Specified by:
validateReplaceIfPresent in class SMPPVersion

validateNumberOfDests

public boolean validateNumberOfDests(int num)
Specified by:
validateNumberOfDests in class SMPPVersion

validateNumUnsuccessful

public boolean validateNumUnsuccessful(int num)
Specified by:
validateNumUnsuccessful in class SMPPVersion

validateDistListName

public boolean validateDistListName(String name)
Specified by:
validateDistListName in class SMPPVersion

validateSystemId

public boolean validateSystemId(String sysId)
Specified by:
validateSystemId in class SMPPVersion

validatePassword

public boolean validatePassword(String password)
Specified by:
validatePassword in class SMPPVersion

validateSystemType

public boolean validateSystemType(String sysType)
Specified by:
validateSystemType in class SMPPVersion

validateAddressRange

public boolean validateAddressRange(String addressRange)
Specified by:
validateAddressRange in class SMPPVersion

validateParamName

public boolean validateParamName(String paramName)
Specified by:
validateParamName in class SMPPVersion

validateParamValue

public boolean validateParamValue(String paramValue)
Specified by:
validateParamValue in class SMPPVersion


Copyright © 2011 smppapi at Sourceforge. All Rights Reserved.