|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BaseResponseHandler
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 java.io.IOException
commandStatus
- is the command status.sequenceNumber
- is the sequence number original PDU if can be decoded.
java.io.IOException
- if an IO error occur.void sendNegativeResponse(int originalCommandId, int commandStatus, int sequenceNumber) throws java.io.IOException
originalCommandId
- is the original command id.commandStatus
- is the command status.sequenceNumber
- is the sequence number of original PDU request.
java.io.IOException
- if an IO error occur.void sendEnquireLinkResp(int sequenceNumber) throws java.io.IOException
sequenceNumber
- is the sequence number of original ENQUIRE_LINK
request.
java.io.IOException
- if an IO error occur.void sendUnbindResp(int sequenceNumber) throws java.io.IOException
sequenceNumber
- is the sequence number of original UNBIND request.
java.io.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 java.io.IOException
dataSmResult
- is the result of data_sm.sequenceNumber
- is the sequence number of original DATA_SM
request.
java.io.IOException
- if an IO error occur.void notifyUnbonded()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |