org.jsmpp.session
Interface GenericMessageReceiverListener
- All Known Subinterfaces:
- MessageReceiverListener, ServerMessageReceiverListener
- All Known Implementing Classes:
- MessageReceiverListenerImpl, SMPPServerSimulator, StressServer
public interface GenericMessageReceiverListener
This listener will listen to every incoming short message. The logic of this
method event should be accomplish in a short time, because the the other
event will be waiting the invocation of the method. Normal logic will be
return the response with zero valued command_status, or throw
ProcessRequestException
if the non-zero valued command_status (in
means negative response) returned.
- Since:
- 2.0
- Version:
- 1.0
- Author:
- uudashr
onAcceptDataSm
DataSmResult onAcceptDataSm(DataSm dataSm,
Session source)
throws ProcessRequestException
- Event that called when a data short message accepted.
- Parameters:
dataSm
- is the data_sm command.source
- is the session receive the data_sm command.
- Returns:
- the data_sm result.
- Throws:
ProcessRequestException
- throw if there should be return non-ok
command_status for the response.