org.jsmpp.session
Interface ServerResponseDeliveryListener

All Known Implementing Classes:
ServerResponseDeliveryAdapter

public interface ServerResponseDeliveryListener

This is listener will be used by SMPPServerSession to notify a user when a response has been sent.

Some of user code might be implemented on SMPPServerSession is

Both implementation of those method might take long time.

Author:
uudashr

Method Summary
 void onSubmitMultiRespError(SubmitMultiResult submitMultiResult, java.lang.Exception cause, SMPPServerSession source)
          This event raised when submit_multi_resp delivery is failed.
 void onSubmitMultiRespSent(SubmitMultiResult submitMultiResult, SMPPServerSession source)
          This event raised when submit_multi_resp delivery is succeed.
 void onSubmitSmRespError(MessageId messageId, java.lang.Exception cause, SMPPServerSession source)
          This event raised when submit_sm_resp delivery is failed.
 void onSubmitSmRespSent(MessageId messageId, SMPPServerSession source)
          This event raised when submit_sm_resp delivery is succeed.
 

Method Detail

onSubmitSmRespSent

void onSubmitSmRespSent(MessageId messageId,
                        SMPPServerSession source)
This event raised when submit_sm_resp delivery is succeed.

Parameters:
messageId - is the message id that will be sent to client as response.
source - is the session who handle this response.

onSubmitSmRespError

void onSubmitSmRespError(MessageId messageId,
                         java.lang.Exception cause,
                         SMPPServerSession source)
This event raised when submit_sm_resp delivery is failed.

Parameters:
messageId - is the message id that will be sent to client as response.
cause - is the failure cause.
source - is the session who handle this response.

onSubmitMultiRespSent

void onSubmitMultiRespSent(SubmitMultiResult submitMultiResult,
                           SMPPServerSession source)
This event raised when submit_multi_resp delivery is succeed.

Parameters:
submitMultiResult - is the result that will be sent to client as response.
source - is the session who handle this response.

onSubmitMultiRespError

void onSubmitMultiRespError(SubmitMultiResult submitMultiResult,
                            java.lang.Exception cause,
                            SMPPServerSession source)
This event raised when submit_multi_resp delivery is failed.

Parameters:
submitMultiResult - is the result that will be sent to client as response.
cause - is the failure cause.
source - is the session who handle this response.