public class DefaultSmppSessionHandler extends Object implements SmppSessionListener
| Constructor and Description |
|---|
DefaultSmppSessionHandler() |
DefaultSmppSessionHandler(org.slf4j.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
fireChannelUnexpectedlyClosed()
Called when the underlying channel of a session has been closed and it
wasn't at the request of our side.
|
void |
fireExpectedPduResponseReceived(PduAsyncResponse pduAsyncResponse)
Called when a response PDU is received for a previously sent request PDU.
|
boolean |
firePduDispatch(Pdu pdu)
Called when ANY PDU received from connection.
|
boolean |
firePduReceived(Pdu pdu)
Called when ANY PDU received from connection.
|
void |
firePduRequestExpired(PduRequest pduRequest)
Called when a request PDU has not received an associated response within
the expiry time.
|
PduResponse |
firePduRequestReceived(PduRequest pduRequest)
Called when a request PDU such as a "DeliverSM" has been received on a
session.
|
void |
fireRecoverablePduException(RecoverablePduException e)
Called when a "recoverable" exception has been thrown downstream in
the session's pipeline.
|
void |
fireUnexpectedPduResponseReceived(PduResponse pduResponse)
Called when a response PDU is received for a request this session never sent.
|
void |
fireUnknownThrowable(Throwable t)
Called when any exception/throwable has been thrown downstream in
the session's pipeline that wasn't of the types: UnrecoverablePduException
or RecoverablePduException.
|
void |
fireUnrecoverablePduException(UnrecoverablePduException e)
Called when an "unrecoverable" exception has been thrown downstream in
the session's pipeline.
|
String |
lookupResultMessage(int commandStatus)
Lookup a "command_status" value and returns a String that represents a result
message (description) of what the value means.
|
String |
lookupTlvTagName(short tag)
Lookup a name for the tag of a TLV and returns a String that represents a
name for it.
|
public DefaultSmppSessionHandler()
public DefaultSmppSessionHandler(org.slf4j.Logger logger)
public String lookupResultMessage(int commandStatus)
PduTranscoderContextlookupResultMessage in interface PduTranscoderContextcommandStatus - The command_status field to lookuppublic String lookupTlvTagName(short tag)
PduTranscoderContextlookupTlvTagName in interface PduTranscoderContexttag - The TLV's tag value to lookuppublic void fireChannelUnexpectedlyClosed()
SmppSessionHandlerfireChannelUnexpectedlyClosed in interface SmppSessionHandlerpublic PduResponse firePduRequestReceived(PduRequest pduRequest)
SmppSessionHandlerfirePduRequestReceived in interface SmppSessionHandlerpduRequest - The request PDU received on this sessionpublic void fireExpectedPduResponseReceived(PduAsyncResponse pduAsyncResponse)
SmppSessionHandlerfireExpectedPduResponseReceived in interface SmppSessionHandlerpduAsyncResponse - The "expected" response PDU received on this sessionpublic void fireUnexpectedPduResponseReceived(PduResponse pduResponse)
SmppSessionHandlerfireUnexpectedPduResponseReceived in interface SmppSessionHandlerpduResponse - The "unexpected" response PDU received on this sessionpublic void fireUnrecoverablePduException(UnrecoverablePduException e)
SmppSessionHandlerfireUnrecoverablePduException in interface SmppSessionHandlere - The exceptionpublic void fireRecoverablePduException(RecoverablePduException e)
SmppSessionHandlerfireRecoverablePduException in interface SmppSessionHandlere - The exceptionpublic void fireUnknownThrowable(Throwable t)
SmppSessionHandlerfireUnknownThrowable in interface SmppSessionHandlerpublic void firePduRequestExpired(PduRequest pduRequest)
SmppSessionHandlerfirePduRequestExpired in interface SmppSessionHandlerpduRequest - The request PDU received on this sessionpublic boolean firePduReceived(Pdu pdu)
SmppSessionListenerfirePduReceived in interface SmppSessionListenerpublic boolean firePduDispatch(Pdu pdu)
SmppSessionListenerfirePduDispatch in interface SmppSessionListenerCopyright © 2009-2014 Cloudhopper by Twitter. All Rights Reserved.