org.apache.camel.component.smpp
Class SmppUtils

java.lang.Object
  extended by org.apache.camel.component.smpp.SmppUtils

public final class SmppUtils
extends Object


Field Summary
static short[] ISO_GSM_0338
          See http://unicode.org/Public/MAPPINGS/ETSI/GSM0338.TXT
static short[][] ISO_GSM_0338_EXT
          See http://unicode.org/Public/MAPPINGS/ETSI/GSM0338.TXT
 
Method Summary
static org.jsmpp.bean.DataSm copyDataSm(org.jsmpp.bean.DataSm src)
           
static org.jsmpp.bean.SubmitMulti copySubmitMulti(org.jsmpp.bean.SubmitMulti src)
           
static org.jsmpp.bean.SubmitSm copySubmitSm(org.jsmpp.bean.SubmitSm src)
           
static String formatTime(Date date)
           
static boolean isGsm0338Encodeable(byte[] aMessage)
           
static org.jsmpp.bean.Alphabet parseAlphabetFromDataCoding(byte dataCoding)
           
static Date string2Date(String date)
          YYMMDDhhmmSS where: YY = last two digits of the year (00-99) MM = month (01-12) DD = day (01-31) hh = hour (00-23) mm = minute (00-59) SS = second (00-59) Java format is (yyMMddHHmmSS).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ISO_GSM_0338

public static final short[] ISO_GSM_0338
See http://unicode.org/Public/MAPPINGS/ETSI/GSM0338.TXT


ISO_GSM_0338_EXT

public static final short[][] ISO_GSM_0338_EXT
See http://unicode.org/Public/MAPPINGS/ETSI/GSM0338.TXT

Method Detail

formatTime

public static String formatTime(Date date)

string2Date

public static Date string2Date(String date)
YYMMDDhhmmSS where: Java format is (yyMMddHHmmSS).

Parameters:
date - in String format.
Returns:
the date
Throws:
NumberFormatException - if there is contains non number on date parameter.
IndexOutOfBoundsException - if the date length in String format is less than 10.

parseAlphabetFromDataCoding

public static org.jsmpp.bean.Alphabet parseAlphabetFromDataCoding(byte dataCoding)

isGsm0338Encodeable

public static boolean isGsm0338Encodeable(byte[] aMessage)

copySubmitSm

public static org.jsmpp.bean.SubmitSm copySubmitSm(org.jsmpp.bean.SubmitSm src)

copySubmitMulti

public static org.jsmpp.bean.SubmitMulti copySubmitMulti(org.jsmpp.bean.SubmitMulti src)

copyDataSm

public static org.jsmpp.bean.DataSm copyDataSm(org.jsmpp.bean.DataSm src)


Apache Camel