|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.protocols.smpp.event.SMPPEventAdapter
public abstract class SMPPEventAdapter
Base class for applications to extend for SMPP event handling. This class handles incoming events and provides a set of blank handler methods for the various events. This makes it easy for an application to extend this class and only override the methods it's interested in.
| Constructor Summary | |
|---|---|
SMPPEventAdapter()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
bindResponse(Session source,
BindResp br)
Bind response packet received from the SMSC. |
void |
cancelSMResponse(Session source,
CancelSMResp cmr)
CancelSM response packet received from the SMSC. |
void |
deliverSM(Session source,
DeliverSM dm)
DeliverSM packet received from the SMSC. |
void |
genericNack(Session source,
GenericNack nack)
GenericNack packet received from the SMSC. |
void |
packetReceived(Session source,
SMPPPacket pak)
Called when a new SMPP packet has been received from the SMSC. |
void |
paramRetrieveResponse(Session source,
ParamRetrieveResp prr)
ParamRetrieve response packet received from the SMSC. |
void |
queryLink(Session source,
EnquireLink el)
EnquireLink packet received from the SMSC. |
void |
queryLinkResponse(Session source,
EnquireLinkResp elr)
EnquireLink response packet received from the SMSC. |
void |
queryResponse(Session source,
SMPPPacket qr)
One of a QuerySM, QueryLastMsgs or QueryMsgDetails response packet has been received from the SMSC. |
void |
receiverException(Session source,
ReceiverExceptionEvent rev)
Receiver thread caught a non-fatal exception. |
void |
receiverExit(Session source,
ReceiverExitEvent rev)
Receiver thread exited normally. |
void |
receiverExitException(Session source,
ReceiverExitEvent rev)
Receiver thread exited due to fatal exception. |
void |
receiverStart(Session source,
ReceiverStartEvent rs)
Receiver thread has started up. |
void |
replaceSMResponse(Session source,
ReplaceSMResp rmr)
ReplaceSM response packet received from the SMSC. |
void |
submitMultiResponse(Session source,
SubmitMultiResp smr)
SubmitMulti response packet received from the SMSC. |
void |
submitSMResponse(Session source,
SubmitSMResp smr)
SubmitSM response packet received from the SMSC. |
void |
unbind(Session source,
Unbind ubd)
Unbind packet received from the SMSC. |
void |
unbindResponse(Session source,
UnbindResp ubr)
Unbind response packet received from the SMSC. |
void |
unidentified(Session source,
SMPPPacket pak)
An unidentified packet has been received from the SMSC. |
void |
update(Session source,
SMPPEvent event)
Called for all events other than packet reception. |
void |
userEvent(Session source,
SMPPEvent ev)
PLACEHOLDER. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SMPPEventAdapter()
| Method Detail |
|---|
public final void update(Session source,
SMPPEvent event)
SessionObserverSessionObserver.packetReceived(org.mobicents.protocols.smpp.Session, org.mobicents.protocols.smpp.message.SMPPPacket)method is called in
that case. The update method is mostly used for control
events, such as signifying the exit of the receiver thread or notifying
of error conditions.
update in interface SessionObserversource - the Connection which received the packet.event - the SMPP event type.com.adenki.smpp.event.SMPPEvent#getType
public final void packetReceived(Session source,
SMPPPacket pak)
SessionObserverSMPPPacket.getCommandId().
packetReceived in interface SessionObserversource - the Connection which received the packet.pak - the SMPP packet received.
public void receiverExit(Session source,
ReceiverExitEvent rev)
source - the source connection of the event.rev - the receiver exit event object received from the API.
public void receiverExitException(Session source,
ReceiverExitEvent rev)
source - the source connection of the event.rev - the receiver exit event object received from the API.
public void receiverException(Session source,
ReceiverExceptionEvent rev)
source - the source connection of the event.rev - the receiver exception event received from the API, which
contains the caught exception.
public void receiverStart(Session source,
ReceiverStartEvent rs)
source - the source connection of the event.rs - the receiver start event received from the API.
public void userEvent(Session source,
SMPPEvent ev)
public void deliverSM(Session source,
DeliverSM dm)
public void submitSMResponse(Session source,
SubmitSMResp smr)
public void submitMultiResponse(Session source,
SubmitMultiResp smr)
public void cancelSMResponse(Session source,
CancelSMResp cmr)
public void replaceSMResponse(Session source,
ReplaceSMResp rmr)
public void paramRetrieveResponse(Session source,
ParamRetrieveResp prr)
public void queryResponse(Session source,
SMPPPacket qr)
public void queryLink(Session source,
EnquireLink el)
public void queryLinkResponse(Session source,
EnquireLinkResp elr)
public void unbind(Session source,
Unbind ubd)
public void unbindResponse(Session source,
UnbindResp ubr)
public void bindResponse(Session source,
BindResp br)
public void genericNack(Session source,
GenericNack nack)
public void unidentified(Session source,
SMPPPacket pak)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||