public abstract class AbstractSMPPOperation extends Object implements SMPPOperation
| Constructor and Description |
|---|
AbstractSMPPOperation(Connection connection,
PDUSender pduSender) |
| Modifier and Type | Method and Description |
|---|---|
protected Connection |
connection() |
DataSmResult |
dataSm(String serviceType,
TypeOfNumber sourceAddrTon,
NumberingPlanIndicator sourceAddrNpi,
String sourceAddr,
TypeOfNumber destAddrTon,
NumberingPlanIndicator destAddrNpi,
String destinationAddr,
ESMClass esmClass,
RegisteredDelivery registeredDelivery,
DataCoding dataCoding,
OptionalParameter... optionalParameters) |
void |
dataSmResp(int sequenceNumber,
String messageId,
OptionalParameter... optionalParameters) |
void |
enquireLink() |
void |
enquireLinkResp(int sequenceNumber) |
protected Command |
executeSendCommand(SendCommandTask task,
long timeout)
Execute send command command task.
|
void |
genericNack(int commandStatus,
int sequenceNumber) |
long |
getTransactionTimer() |
protected PDUSender |
pduSender() |
void |
setTransactionTimer(long transactionTimer) |
void |
unbind() |
void |
unbindResp(int sequenceNumber) |
public AbstractSMPPOperation(Connection connection, PDUSender pduSender)
protected PDUSender pduSender()
protected Connection connection()
public void setTransactionTimer(long transactionTimer)
public long getTransactionTimer()
protected Command executeSendCommand(SendCommandTask task, long timeout) throws PDUException, ResponseTimeoutException, InvalidResponseException, NegativeResponseException, IOException
task - is the task.timeout - is the timeout in millisecond.PDUException - if there is invalid PDU parameter found.ResponseTimeoutException - if the response has reach it timeout.InvalidResponseException - if invalid response found.NegativeResponseException - if the negative response found.IOException - if there is an IO error found.public void unbind()
throws ResponseTimeoutException,
InvalidResponseException,
IOException
unbind in interface SMPPOperationResponseTimeoutExceptionInvalidResponseExceptionIOExceptionpublic void unbindResp(int sequenceNumber)
throws IOException
unbindResp in interface SMPPOperationIOExceptionpublic DataSmResult dataSm(String serviceType, TypeOfNumber sourceAddrTon, NumberingPlanIndicator sourceAddrNpi, String sourceAddr, TypeOfNumber destAddrTon, NumberingPlanIndicator destAddrNpi, String destinationAddr, ESMClass esmClass, RegisteredDelivery registeredDelivery, DataCoding dataCoding, OptionalParameter... optionalParameters) throws PDUException, ResponseTimeoutException, InvalidResponseException, NegativeResponseException, IOException
dataSm in interface SMPPOperationPDUExceptionResponseTimeoutExceptionInvalidResponseExceptionNegativeResponseExceptionIOExceptionpublic void dataSmResp(int sequenceNumber,
String messageId,
OptionalParameter... optionalParameters)
throws PDUStringException,
IOException
dataSmResp in interface SMPPOperationPDUStringExceptionIOExceptionpublic void enquireLink()
throws ResponseTimeoutException,
InvalidResponseException,
IOException
enquireLink in interface SMPPOperationResponseTimeoutExceptionInvalidResponseExceptionIOExceptionpublic void enquireLinkResp(int sequenceNumber)
throws IOException
enquireLinkResp in interface SMPPOperationIOExceptionpublic void genericNack(int commandStatus,
int sequenceNumber)
throws IOException
genericNack in interface SMPPOperationIOException