|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.component.smpp.SmppSplitter
public class SmppSplitter
Field Summary | |
---|---|
protected static int |
MAX_MSG_BYTE_LENGTH
The maximum length of the message in bytes. |
protected static int |
MAX_SEG_COUNT
The maximum amount of segments in the multipart message. |
protected static int |
UDHIE_HEADER_LENGTH
The length of the UDH in bytes. |
protected static int |
UDHIE_HEADER_REAL_LENGTH
The real length of the UDH header. |
protected static byte |
UDHIE_IDENTIFIER_SAR
The value that identifier length of the SAR fragment. |
protected static byte |
UDHIE_SAR_LENGTH
The length of the SAR fragment. |
protected static int |
UDHIE_SAR_REF_NUM_LENGTH
The length of the reference number of the SAR fragmet of the UDH header. |
Constructor Summary | |
---|---|
protected |
SmppSplitter(int messageLength,
int segmentLength,
int currentLength)
|
Method Summary | |
---|---|
int |
getCurrentLength()
Gets length of the message to split. |
protected static byte |
getCurrentReferenceNumber()
|
int |
getMessageLength()
Gets maximum message length. |
protected static byte |
getReferenceNumber()
Returns reference number which length is UDHIE_SAR_REF_NUM_LENGTH . |
int |
getSegmentLength()
Gets maximum segment length. |
protected boolean |
isSplitRequired()
|
protected static void |
resetCurrentReferenceNumber()
only needed for the unit tests |
byte[][] |
split(byte[] message)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int UDHIE_HEADER_LENGTH
protected static final int UDHIE_HEADER_REAL_LENGTH
UDHIE_HEADER_LENGTH
+ 1
.
UDHIE_HEADER_LENGTH
,
Constant Field Valuesprotected static final int UDHIE_SAR_REF_NUM_LENGTH
protected static final byte UDHIE_IDENTIFIER_SAR
0x00
value must be used if the legnth of the reference number is
1 byte.0x08
value must be used if the legnth of the reference number is
2 bytes.
protected static final byte UDHIE_SAR_LENGTH
0x03
value must be used if the legnth of the reference number is
1 byte.0x04
value must be used if the legnth of the reference number is
2 bytes.
protected static final int MAX_MSG_BYTE_LENGTH
protected static final int MAX_SEG_COUNT
Constructor Detail |
---|
protected SmppSplitter(int messageLength, int segmentLength, int currentLength)
Method Detail |
---|
protected static byte getReferenceNumber()
UDHIE_SAR_REF_NUM_LENGTH
.
protected static byte getCurrentReferenceNumber()
protected static void resetCurrentReferenceNumber()
public byte[][] split(byte[] message)
protected boolean isSplitRequired()
public int getMessageLength()
public int getSegmentLength()
public int getCurrentLength()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |