org.jsmpp.util
Interface PDUDecomposer

All Known Implementing Classes:
DefaultDecomposer

public interface PDUDecomposer

This class is provide interface to decompose SMPP PDU bytes form into SMPP command object.

Since:
1.0
Version:
1.0
Author:
uudashr

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.
 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.
 

Method Detail

header

Command header(byte[] b)
Decompose the header only SMPP PDU command.

Parameters:
b - is the PDU.
Returns:
the header ( Command ) object.

bind

Bind bind(byte[] b)
          throws PDUStringException
Decompose the SMPP PDU bind command.

Parameters:
b - is the PDU.
Returns:
the bind command object. PDUStringException if there is an invalid constraint of string parameter found.
Throws:
PDUStringException

bindResp

BindResp bindResp(byte[] b)
                  throws PDUStringException
Decompose the SMPP PDU bind response command.

Parameters:
b - is the PDU.
Returns:
the bind response command object.
Throws:
PDUStringException

unbind

Unbind unbind(byte[] b)
Decompose the SMPP PDU unbind command.

Parameters:
b - is the PDU.
Returns:
the unbind command object.

unbindResp

UnbindResp unbindResp(byte[] b)
Decompose the SMPP PDU unbind response command.

Parameters:
b - is the PDU.
Returns:
the unbind response command object.

outbind

Outbind outbind(byte[] b)
                throws PDUStringException
Decompose the SMPP PDU outbind command.

Parameters:
b - is the PDU.
Returns:
the outbind command object. PDUStringException if there is an invalid constraint of string parameter found.
Throws:
PDUStringException

enquireLink

EnquireLink enquireLink(byte[] b)
Decompose the SMPP PDU enquire link command.

Parameters:
b - is the PDU.
Returns:
the enquire link command object.

enquireLinkResp

EnquireLinkResp enquireLinkResp(byte[] b)
Decompose the SMPP PDU enquire link response command.

Parameters:
b - is the PDU.
Returns:
the enquire link response command object.

genericNack

GenericNack genericNack(byte[] b)
Decompose the SMPP PDU generic nack command.

Parameters:
b - is the PDU.
Returns:
the generic nack command object.

submitSm

SubmitSm submitSm(byte[] b)
                  throws PDUStringException
Decompose the SMPP PDU submit short message command.

Parameters:
b - is the PDU.
Returns:
the submit short message command object. PDUStringException if there is an invalid constraint of string parameter found.
Throws:
PDUStringException

submitSmResp

SubmitSmResp submitSmResp(byte[] b)
                          throws PDUStringException
Decompose the SMPP PDU submit short message response command.

Parameters:
b - is the PDU.
Returns:
the submit short message response command object. PDUStringException if there is an invalid constraint of string parameter found.
Throws:
PDUStringException

querySm

QuerySm querySm(byte[] b)
                throws PDUStringException
Decompose the SMPP PDU query short message command.

Parameters:
b - is the PDU.
Returns:
the query short message command object. PDUStringException if there is an invalid constraint of string parameter found.
Throws:
PDUStringException

querySmResp

QuerySmResp querySmResp(byte[] b)
                        throws PDUStringException
Decompose the SMPP PDU query short message reponse command.

Parameters:
b - is the PDU.
Returns:
the query short message response command object. PDUStringException if there is an invalid constraint of string parameter found.
Throws:
PDUStringException

deliverSm

DeliverSm deliverSm(byte[] b)
                    throws PDUStringException
Decompose the SMPP PDU deliver short message command.

Parameters:
b - is the PDU.
Returns:
the deliver short message command object.
Throws:
PDUStringException - if there is an invalid constraint of string parameter found.

deliverSmResp

DeliverSmResp deliverSmResp(byte[] b)
Decompose the SMPP PDU deliver short message response command.

Parameters:
b - is the PDU.
Returns:
the deliver short message response command object.

deliveryReceipt

DeliveryReceipt deliveryReceipt(java.lang.String data)
                                throws InvalidDeliveryReceiptException
Decompose the SMPP PDU delivery receipt content.

Parameters:
data - is the content.
Returns:
the delivery receipt object.
Throws:
InvalidDeliveryReceiptException - throw if the data is invalid, so it can be parsed.

deliveryReceipt

DeliveryReceipt deliveryReceipt(byte[] data)
                                throws InvalidDeliveryReceiptException
Decompose the SMPP PDU delivery receipt content.

Parameters:
data - is the content.
Returns:
the delivery receipt object.
Throws:
InvalidDeliveryReceiptException - throw if the data is invalid, so it can be parsed.

dataSm

DataSm dataSm(byte[] data)
              throws PDUStringException
Decompose the SMPP PDU data short message command.

Parameters:
data - is the PDU.
Returns:
the data short message command object.
Throws:
PDUStringException - if there is an invalid constraint of string parameter found.

dataSmResp

DataSmResp dataSmResp(byte[] data)
                      throws PDUStringException
Decompose the SMPP PDU data short message response command.

Parameters:
data - is the PDU.
Returns:
the data short message command object.
Throws:
PDUStringException

cancelSm

CancelSm cancelSm(byte[] data)
                  throws PDUStringException
Decompose the SMPP PDU cancel short message command.

Parameters:
data - is the PDU.
Returns:
the cancel short message command object.
Throws:
PDUStringException - if there is an invalid constraint of string parameter found.

cancelSmResp

CancelSmResp cancelSmResp(byte[] data)
Decompose the SMPP PDU cancel short message response command.

Parameters:
data - is the PDU.
Returns:
the cancel short message command object.

submitMulti

SubmitMulti submitMulti(byte[] data)
                        throws PDUStringException,
                               InvalidNumberOfDestinationsException
Throws:
PDUStringException
InvalidNumberOfDestinationsException

submitMultiResp

SubmitMultiResp submitMultiResp(byte[] data)
                                throws PDUStringException
Throws:
PDUStringException

replaceSm

ReplaceSm replaceSm(byte[] data)
                    throws PDUStringException
Throws:
PDUStringException

replaceSmResp

ReplaceSmResp replaceSmResp(byte[] data)

alertNotification

AlertNotification alertNotification(byte[] data)
                                    throws PDUStringException
Throws:
PDUStringException