public class DefaultDecomposer extends Object implements PDUDecomposer
| Constructor and Description |
|---|
DefaultDecomposer()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AlertNotification |
alertNotification(byte[] data) |
Bind |
bind(byte[] b)
Decompose the SMPP PDU bind command.
|
BindResp |
bindResp(byte[] b)
Decompose the SMPP PDU bind response command.
|
CancelSm |
cancelSm(byte[] data)
Decompose the SMPP PDU cancel short message command.
|
CancelSmResp |
cancelSmResp(byte[] data)
Decompose the SMPP PDU cancel short message response command.
|
DataSm |
dataSm(byte[] data)
Decompose the SMPP PDU data short message command.
|
DataSmResp |
dataSmResp(byte[] data)
Decompose the SMPP PDU data short message response command.
|
DeliverSm |
deliverSm(byte[] b)
Decompose the SMPP PDU deliver short message command.
|
DeliverSmResp |
deliverSmResp(byte[] b)
Decompose the SMPP PDU deliver short message response command.
|
DeliveryReceipt |
deliveryReceipt(byte[] data)
Decompose the SMPP PDU delivery receipt content.
|
DeliveryReceipt |
deliveryReceipt(String data)
Decompose the SMPP PDU delivery receipt content.
|
EnquireLink |
enquireLink(byte[] b)
Decompose the SMPP PDU enquire link command.
|
EnquireLinkResp |
enquireLinkResp(byte[] b)
Decompose the SMPP PDU enquire link response command.
|
GenericNack |
genericNack(byte[] b)
Decompose the SMPP PDU generic nack command.
|
static PDUDecomposer |
getInstance() |
Command |
header(byte[] b)
Decompose the header only SMPP PDU command.
|
Outbind |
outbind(byte[] b)
Decompose the SMPP PDU outbind command.
|
QuerySm |
querySm(byte[] b)
Decompose the SMPP PDU query short message command.
|
QuerySmResp |
querySmResp(byte[] b)
Decompose the SMPP PDU query short message reponse command.
|
ReplaceSm |
replaceSm(byte[] data) |
ReplaceSmResp |
replaceSmResp(byte[] data) |
SubmitMulti |
submitMulti(byte[] data) |
SubmitMultiResp |
submitMultiResp(byte[] data) |
SubmitSm |
submitSm(byte[] b)
Decompose the SMPP PDU submit short message command.
|
SubmitSmResp |
submitSmResp(byte[] b)
Decompose the SMPP PDU submit short message response command.
|
Unbind |
unbind(byte[] b)
Decompose the SMPP PDU unbind command.
|
UnbindResp |
unbindResp(byte[] b)
Decompose the SMPP PDU unbind response command.
|
public static final PDUDecomposer getInstance()
public Command header(byte[] b)
PDUDecomposerheader in interface PDUDecomposerb - is the PDU.Command ) object.public Bind bind(byte[] b) throws PDUStringException
PDUDecomposerbind in interface PDUDecomposerb - is the PDU.PDUStringExceptionpublic BindResp bindResp(byte[] b) throws PDUStringException
PDUDecomposerbindResp in interface PDUDecomposerb - is the PDU.PDUStringExceptionpublic Unbind unbind(byte[] b)
PDUDecomposerunbind in interface PDUDecomposerb - is the PDU.public UnbindResp unbindResp(byte[] b)
PDUDecomposerunbindResp in interface PDUDecomposerb - is the PDU.public Outbind outbind(byte[] b) throws PDUStringException
PDUDecomposeroutbind in interface PDUDecomposerb - is the PDU.PDUStringExceptionpublic EnquireLink enquireLink(byte[] b)
PDUDecomposerenquireLink in interface PDUDecomposerb - is the PDU.public EnquireLinkResp enquireLinkResp(byte[] b)
PDUDecomposerenquireLinkResp in interface PDUDecomposerb - is the PDU.public GenericNack genericNack(byte[] b)
PDUDecomposergenericNack in interface PDUDecomposerb - is the PDU.public SubmitSm submitSm(byte[] b) throws PDUStringException
PDUDecomposersubmitSm in interface PDUDecomposerb - is the PDU.PDUStringExceptionpublic SubmitSmResp submitSmResp(byte[] b) throws PDUStringException
PDUDecomposersubmitSmResp in interface PDUDecomposerb - is the PDU.PDUStringExceptionpublic QuerySm querySm(byte[] b) throws PDUStringException
PDUDecomposerquerySm in interface PDUDecomposerb - is the PDU.PDUStringExceptionpublic QuerySmResp querySmResp(byte[] b) throws PDUStringException
PDUDecomposerquerySmResp in interface PDUDecomposerb - is the PDU.PDUStringExceptionpublic DeliverSm deliverSm(byte[] b) throws PDUStringException
PDUDecomposerdeliverSm in interface PDUDecomposerb - is the PDU.PDUStringException - if there is an invalid constraint of
string parameter found.public DeliverSmResp deliverSmResp(byte[] b)
PDUDecomposerdeliverSmResp in interface PDUDecomposerb - is the PDU.public DeliveryReceipt deliveryReceipt(String data) throws InvalidDeliveryReceiptException
PDUDecomposerdeliveryReceipt in interface PDUDecomposerdata - is the content.InvalidDeliveryReceiptException - throw if the data is invalid, so
it can be parsed.public DeliveryReceipt deliveryReceipt(byte[] data) throws InvalidDeliveryReceiptException
PDUDecomposerdeliveryReceipt in interface PDUDecomposerdata - is the content.InvalidDeliveryReceiptException - throw if the data is invalid, so
it can be parsed.public DataSm dataSm(byte[] data) throws PDUStringException
PDUDecomposerdataSm in interface PDUDecomposerdata - is the PDU.PDUStringException - if there is an invalid constraint of
string parameter found.public DataSmResp dataSmResp(byte[] data) throws PDUStringException
PDUDecomposerdataSmResp in interface PDUDecomposerdata - is the PDU.PDUStringExceptionpublic CancelSm cancelSm(byte[] data) throws PDUStringException
PDUDecomposercancelSm in interface PDUDecomposerdata - is the PDU.PDUStringException - if there is an invalid constraint of string
parameter found.public CancelSmResp cancelSmResp(byte[] data)
PDUDecomposercancelSmResp in interface PDUDecomposerdata - is the PDU.public SubmitMulti submitMulti(byte[] data) throws PDUStringException, InvalidNumberOfDestinationsException
submitMulti in interface PDUDecomposerPDUStringExceptionInvalidNumberOfDestinationsExceptionpublic SubmitMultiResp submitMultiResp(byte[] data) throws PDUStringException
submitMultiResp in interface PDUDecomposerPDUStringExceptionpublic ReplaceSm replaceSm(byte[] data) throws PDUStringException
replaceSm in interface PDUDecomposerPDUStringExceptionpublic ReplaceSmResp replaceSmResp(byte[] data)
replaceSmResp in interface PDUDecomposerpublic AlertNotification alertNotification(byte[] data) throws PDUStringException
alertNotification in interface PDUDecomposerPDUStringException