Package org.apache.camel.component.smpp
Class SmppNLSTSplitter
- java.lang.Object
-
- org.apache.camel.component.smpp.SmppSplitter
-
- org.apache.camel.component.smpp.SmppNLSTSplitter
-
public class SmppNLSTSplitter extends SmppSplitter
Splitter for messages use National Language Lock Table
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_MSG_CHAR_SIZE
The maximum length in chars of the NLI messages.static int
MAX_SEG_BYTE_SIZE
protected static int
UDHIE_NLI_HEADER_LENGTH
The length of the NLI headerprotected static int
UDHIE_NLI_IDENTIFIER
The element identifier value for the National Language Locking Tableprotected static int
UDHIE_NLI_MULTI_MSG_HEADER_LENGTH
The length of the UDH for splitted short messages, in bytes.protected static int
UDHIE_NLI_MULTI_MSG_HEADER_REAL_LENGTH
The real length of the UDH for segmentet short messagesprotected static int
UDHIE_NLI_SINGLE_MSG_HEADER_LENGTH
The length of the UDH for single short message in bytes.protected static int
UDHIE_NLI_SINGLE_MSG_HEADER_REAL_LENGTH
The real length of the UDH for single short message-
Fields inherited from class org.apache.camel.component.smpp.SmppSplitter
MAX_MSG_BYTE_LENGTH, MAX_SEG_COUNT, UDHIE_HEADER_LENGTH, UDHIE_HEADER_REAL_LENGTH, UDHIE_IDENTIFIER_SAR, UDHIE_SAR_LENGTH, UDHIE_SAR_REF_NUM_LENGTH
-
-
Constructor Summary
Constructors Constructor Description SmppNLSTSplitter(int currentLength, byte languageIdentifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[][]
split(byte[] message)
-
Methods inherited from class org.apache.camel.component.smpp.SmppSplitter
getCurrentLength, getCurrentReferenceNumber, getMessageLength, getReferenceNumber, getSegmentLength, isSplitRequired, resetCurrentReferenceNumber
-
-
-
-
Field Detail
-
UDHIE_NLI_SINGLE_MSG_HEADER_LENGTH
protected static final int UDHIE_NLI_SINGLE_MSG_HEADER_LENGTH
The length of the UDH for single short message in bytes. 0x25 - UDHIE_NLI_IDENTIFIER 0x01 - Length of the header 0xXX - Locking shift table indicator the Language- See Also:
- Constant Field Values
-
UDHIE_NLI_SINGLE_MSG_HEADER_REAL_LENGTH
protected static final int UDHIE_NLI_SINGLE_MSG_HEADER_REAL_LENGTH
The real length of the UDH for single short message- See Also:
- Constant Field Values
-
UDHIE_NLI_MULTI_MSG_HEADER_LENGTH
protected static final int UDHIE_NLI_MULTI_MSG_HEADER_LENGTH
The length of the UDH for splitted short messages, in bytes. 0x08 Overall header length 0x00 The value that identifier length of the SAR fragment. (8bit reference number only) 0x03 The length of the SAR fragment 0xXX The reference number for SAR 0xXX Total number of splitted / segmented messages 0xXX Segment number 0x25 National language locking shift element identifier 0x01 Length of the header 0xXX Locking shift table indicator for the Language (ie: 0x01 for Turkish)- See Also:
- Constant Field Values
-
UDHIE_NLI_MULTI_MSG_HEADER_REAL_LENGTH
protected static final int UDHIE_NLI_MULTI_MSG_HEADER_REAL_LENGTH
The real length of the UDH for segmentet short messages- See Also:
- Constant Field Values
-
UDHIE_NLI_IDENTIFIER
protected static final int UDHIE_NLI_IDENTIFIER
The element identifier value for the National Language Locking Table- See Also:
- Constant Field Values
-
UDHIE_NLI_HEADER_LENGTH
protected static final int UDHIE_NLI_HEADER_LENGTH
The length of the NLI header- See Also:
- Constant Field Values
-
MAX_MSG_CHAR_SIZE
public static final int MAX_MSG_CHAR_SIZE
The maximum length in chars of the NLI messages. Each letter will be represented as 7 bit (like GSM8)- See Also:
- Constant Field Values
-
MAX_SEG_BYTE_SIZE
public static final int MAX_SEG_BYTE_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
split
public byte[][] split(byte[] message)
- Overrides:
split
in classSmppSplitter
-
-