|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jsmpp.util.DefaultDecomposer
public class DefaultDecomposer
Default implementation of SMPP PDU PDUDecomposer.
Constructor Summary | |
---|---|
DefaultDecomposer()
Default constructor. |
Method Summary | |
---|---|
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(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDecomposer()
Method Detail |
---|
public static final PDUDecomposer getInstance()
public Command header(byte[] b)
PDUDecomposer
header
in interface PDUDecomposer
b
- is the PDU.
Command
) object.public Bind bind(byte[] b) throws PDUStringException
PDUDecomposer
bind
in interface PDUDecomposer
b
- is the PDU.
PDUStringException
public BindResp bindResp(byte[] b) throws PDUStringException
PDUDecomposer
bindResp
in interface PDUDecomposer
b
- is the PDU.
PDUStringException
public Unbind unbind(byte[] b)
PDUDecomposer
unbind
in interface PDUDecomposer
b
- is the PDU.
public UnbindResp unbindResp(byte[] b)
PDUDecomposer
unbindResp
in interface PDUDecomposer
b
- is the PDU.
public Outbind outbind(byte[] b) throws PDUStringException
PDUDecomposer
outbind
in interface PDUDecomposer
b
- is the PDU.
PDUStringException
public EnquireLink enquireLink(byte[] b)
PDUDecomposer
enquireLink
in interface PDUDecomposer
b
- is the PDU.
public EnquireLinkResp enquireLinkResp(byte[] b)
PDUDecomposer
enquireLinkResp
in interface PDUDecomposer
b
- is the PDU.
public GenericNack genericNack(byte[] b)
PDUDecomposer
genericNack
in interface PDUDecomposer
b
- is the PDU.
public SubmitSm submitSm(byte[] b) throws PDUStringException
PDUDecomposer
submitSm
in interface PDUDecomposer
b
- is the PDU.
PDUStringException
public SubmitSmResp submitSmResp(byte[] b) throws PDUStringException
PDUDecomposer
submitSmResp
in interface PDUDecomposer
b
- is the PDU.
PDUStringException
public QuerySm querySm(byte[] b) throws PDUStringException
PDUDecomposer
querySm
in interface PDUDecomposer
b
- is the PDU.
PDUStringException
public QuerySmResp querySmResp(byte[] b) throws PDUStringException
PDUDecomposer
querySmResp
in interface PDUDecomposer
b
- is the PDU.
PDUStringException
public DeliverSm deliverSm(byte[] b) throws PDUStringException
PDUDecomposer
deliverSm
in interface PDUDecomposer
b
- is the PDU.
PDUStringException
- if there is an invalid constraint of
string parameter found.public DeliverSmResp deliverSmResp(byte[] b)
PDUDecomposer
deliverSmResp
in interface PDUDecomposer
b
- is the PDU.
public DeliveryReceipt deliveryReceipt(java.lang.String data) throws InvalidDeliveryReceiptException
PDUDecomposer
deliveryReceipt
in interface PDUDecomposer
data
- is the content.
InvalidDeliveryReceiptException
- throw if the data is invalid, so
it can be parsed.public DeliveryReceipt deliveryReceipt(byte[] data) throws InvalidDeliveryReceiptException
PDUDecomposer
deliveryReceipt
in interface PDUDecomposer
data
- is the content.
InvalidDeliveryReceiptException
- throw if the data is invalid, so
it can be parsed.public DataSm dataSm(byte[] data) throws PDUStringException
PDUDecomposer
dataSm
in interface PDUDecomposer
data
- is the PDU.
PDUStringException
- if there is an invalid constraint of
string parameter found.public DataSmResp dataSmResp(byte[] data) throws PDUStringException
PDUDecomposer
dataSmResp
in interface PDUDecomposer
data
- is the PDU.
PDUStringException
public CancelSm cancelSm(byte[] data) throws PDUStringException
PDUDecomposer
cancelSm
in interface PDUDecomposer
data
- is the PDU.
PDUStringException
- if there is an invalid constraint of string
parameter found.public CancelSmResp cancelSmResp(byte[] data)
PDUDecomposer
cancelSmResp
in interface PDUDecomposer
data
- is the PDU.
public SubmitMulti submitMulti(byte[] data) throws PDUStringException, InvalidNumberOfDestinationsException
submitMulti
in interface PDUDecomposer
PDUStringException
InvalidNumberOfDestinationsException
public SubmitMultiResp submitMultiResp(byte[] data) throws PDUStringException
submitMultiResp
in interface PDUDecomposer
PDUStringException
public ReplaceSm replaceSm(byte[] data) throws PDUStringException
replaceSm
in interface PDUDecomposer
PDUStringException
public ReplaceSmResp replaceSmResp(byte[] data)
replaceSmResp
in interface PDUDecomposer
public AlertNotification alertNotification(byte[] data) throws PDUStringException
alertNotification
in interface PDUDecomposer
PDUStringException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |