org.jsmpp.session
Class ServerResponseDeliveryAdapter

java.lang.Object
  extended by org.jsmpp.session.ServerResponseDeliveryAdapter
All Implemented Interfaces:
ServerResponseDeliveryListener

public abstract class ServerResponseDeliveryAdapter
extends java.lang.Object
implements ServerResponseDeliveryListener

It's abstract adapter class that receive event of response delivery, an implementation of 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.

Author:
uudashr

Constructor Summary
ServerResponseDeliveryAdapter()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerResponseDeliveryAdapter

public ServerResponseDeliveryAdapter()
Method Detail

onSubmitSmRespSent

public void onSubmitSmRespSent(MessageId messageId,
                               SMPPServerSession source)
Description copied from interface: ServerResponseDeliveryListener
This event raised when submit_sm_resp delivery is succeed.

Specified by:
onSubmitSmRespSent in interface ServerResponseDeliveryListener
Parameters:
messageId - is the message id that will be sent to client as response.
source - is the session who handle this response.

onSubmitSmRespError

public void onSubmitSmRespError(MessageId messageId,
                                java.lang.Exception e,
                                SMPPServerSession source)
Description copied from interface: ServerResponseDeliveryListener
This event raised when submit_sm_resp delivery is failed.

Specified by:
onSubmitSmRespError in interface ServerResponseDeliveryListener
Parameters:
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.

onSubmitMultiRespSent

public void onSubmitMultiRespSent(SubmitMultiResult submitMultiResult,
                                  SMPPServerSession source)
Description copied from interface: ServerResponseDeliveryListener
This event raised when submit_multi_resp delivery is succeed.

Specified by:
onSubmitMultiRespSent in interface ServerResponseDeliveryListener
Parameters:
submitMultiResult - is the result that will be sent to client as response.
source - is the session who handle this response.

onSubmitMultiRespError

public void onSubmitMultiRespError(SubmitMultiResult submitMultiResult,
                                   java.lang.Exception e,
                                   SMPPServerSession source)
Description copied from interface: ServerResponseDeliveryListener
This event raised when submit_multi_resp delivery is failed.

Specified by:
onSubmitMultiRespError in interface ServerResponseDeliveryListener
Parameters:
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.