public interface BaseResponseHandler
Modifier and Type | Method and Description |
---|---|
void |
notifyUnbonded()
Notify for unbind.
|
DataSmResult |
processDataSm(DataSm dataSm)
Process the data short message.
|
PendingResponse<Command> |
removeSentItem(int sequenceNumber)
Remove the previously
PendingResponse that set when the request
was sent. |
void |
sendDataSmResp(DataSmResult dataSmResult,
int sequenceNumber)
Response by sending DATA_SM_RESP to SMSC.
|
void |
sendEnquireLinkResp(int sequenceNumber)
Response by sending ENQUIRE_LINK_RESP.
|
void |
sendGenerickNack(int commandStatus,
int sequenceNumber)
Response by sending GENERICK_NACK.
|
void |
sendNegativeResponse(int originalCommandId,
int commandStatus,
int sequenceNumber)
Response by sending negative response.
|
void |
sendUnbindResp(int sequenceNumber)
Response by send UNBIND_RESP.
|
PendingResponse<Command> removeSentItem(int sequenceNumber)
PendingResponse
that set when the request
was sent.sequenceNumber
- the sequence number of the request.PendingResponse
correspond to specified
sequenceNumber. Return null if the the mapped
sequenceNumber not foundvoid sendGenerickNack(int commandStatus, int sequenceNumber) throws IOException
commandStatus
- is the command status.sequenceNumber
- is the sequence number original PDU if can be decoded.IOException
- if an IO error occur.void sendNegativeResponse(int originalCommandId, int commandStatus, int sequenceNumber) throws IOException
originalCommandId
- is the original command id.commandStatus
- is the command status.sequenceNumber
- is the sequence number of original PDU request.IOException
- if an IO error occur.void sendEnquireLinkResp(int sequenceNumber) throws IOException
sequenceNumber
- is the sequence number of original ENQUIRE_LINK
request.IOException
- if an IO error occur.void sendUnbindResp(int sequenceNumber) throws IOException
sequenceNumber
- is the sequence number of original UNBIND request.IOException
- if an IO error occur.DataSmResult processDataSm(DataSm dataSm) throws ProcessRequestException
dataSm
- is the data short message.ProcessRequestException
- if there is a failure when processing
data_sm.void sendDataSmResp(DataSmResult dataSmResult, int sequenceNumber) throws IOException
dataSmResult
- is the result of data_sm.sequenceNumber
- is the sequence number of original DATA_SM
request.IOException
- if an IO error occur.void notifyUnbonded()