public abstract class ServerResponseDeliveryAdapter extends java.lang.Object implements ServerResponseDeliveryListener
ServerResponseDeliveryListener
.
This is alternative from implementing ServerResponseDeliveryListener
.
User only have to create subclass of this class and doesn't have to implement
all method declared on ServerResponseDeliveryListener
.
Constructor and Description |
---|
ServerResponseDeliveryAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
onSubmitMultiRespError(SubmitMultiResult submitMultiResult,
java.lang.Exception e,
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 e,
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.
|
public void onSubmitSmRespSent(MessageId messageId, SMPPServerSession source)
ServerResponseDeliveryListener
onSubmitSmRespSent
in interface ServerResponseDeliveryListener
messageId
- is the message id that will be sent to client as
response.source
- is the session who handle this response.public void onSubmitSmRespError(MessageId messageId, java.lang.Exception e, SMPPServerSession source)
ServerResponseDeliveryListener
onSubmitSmRespError
in interface ServerResponseDeliveryListener
messageId
- is the message id that will be sent to client as
response.e
- is the failure cause.source
- is the session who handle this response.public void onSubmitMultiRespSent(SubmitMultiResult submitMultiResult, SMPPServerSession source)
ServerResponseDeliveryListener
onSubmitMultiRespSent
in interface ServerResponseDeliveryListener
submitMultiResult
- is the result that will be sent to client as
response.source
- is the session who handle this response.public void onSubmitMultiRespError(SubmitMultiResult submitMultiResult, java.lang.Exception e, SMPPServerSession source)
ServerResponseDeliveryListener
onSubmitMultiRespError
in interface ServerResponseDeliveryListener
submitMultiResult
- is the result that will be sent to client as
response.e
- is the failure cause.source
- is the session who handle this response.