📄 pdusender.java
字号:
* @throws PDUStringException if there is an invalid string constraint
* found.
* @throws IOException if there is an IO error occur.
*/
byte[] sendSubmitSmResp(OutputStream os, int sequenceNumber,
String messageId) throws PDUStringException, IOException;
/**
* Send query short message command.
*
* @param os is the {@link OutputStream}.
* @param sequenceNumber is the sequence_number.
* @param messageId is the message_id.
* @param sourceAddrTon is the source_addr_ton.
* @param sourceAddrNpi is the source_addr_npi.
* @param sourceAddr is the source_addr.
* @return the composed bytes.
* @throws PDUStringException if there is an invalid constraint found.
* @throws IOException if there is an IO error occur.
*/
byte[] sendQuerySm(OutputStream os, int sequenceNumber, String messageId,
TypeOfNumber sourceAddrTon, NumberingPlanIndicator sourceAddrNpi,
String sourceAddr) throws PDUStringException, IOException;
/**
* Send query short message response command.
*
* @param os is the {@link OutputStream}.
* @param sequenceNumber is the sequence_number.
* @param messageId is the message_id.
* @param finalDate is the final_date.
* @param messageState is the message_state.
* @param errorCode is the error_code.
* @return the composed bytes.
* @throws PDUStringException if there is an invalid constraint found.
* @throws IOException if there is an IO error occur.
*/
byte[] sendQuerySmResp(OutputStream os, int sequenceNumber,
String messageId, String finalDate, MessageState messageState,
byte errorCode) throws PDUStringException, IOException;
/**
* Send the deliver short message command.
*
* @param os is the {@link OutputStream}.
* @param sequenceNumber the sequence_number.
* @param serviceType the service_type.
* @param sourceAddrTon is the source_addr_ton.
* @param sourceAddrNpi is the source_addr_npi.
* @param sourceAddr is the source_addr.
* @param destAddrTon is the dest_addr_ton.
* @param destAddrNpi is the dest_addr_npi.
* @param destinationAddr is the destination_addr.
* @param esmClass is the esm_class.
* @param protocoId is the protocol_id.
* @param priorityFlag is the priority_flag.
* @param registeredDelivery is the registered_delivery.
* @param dataCoding is the data_coding.
* @param shortMessage is the short_message.
* @param optionalParameters is the optional parameters.
* @return the composed bytes.
* @throws PDUStringException if there is an invalid string constraint
* found.
* @throws IOException if there is an IO error occur.
*/
byte[] sendDeliverSm(OutputStream os, int sequenceNumber,
String serviceType, TypeOfNumber sourceAddrTon,
NumberingPlanIndicator sourceAddrNpi, String sourceAddr,
TypeOfNumber destAddrTon, NumberingPlanIndicator destAddrNpi,
String destinationAddr, ESMClass esmClass, byte protocoId,
byte priorityFlag, RegisteredDelivery registeredDelivery,
DataCoding dataCoding, byte[] shortMessage,
OptionalParameter... optionalParameters) throws PDUStringException,
IOException;
/**
* Send the deliver short message response.
*
* @param os is the {@link OutputStream}.
* @param sequenceNumber is the sequence_number.
* @return the composed bytes.
* @throws IOException if there is an IO error occur.
*/
byte[] sendDeliverSmResp(OutputStream os, int sequenceNumber)
throws IOException;
/**
* Send the data short message command.
*
* @param os is the {@link OutputStream}.
* @param sequenceNumber the sequence_number.
* @param serviceType the service_type.
* @param sourceAddrTon is the source_addr_ton.
* @param sourceAddrNpi is the source_addr_npi.
* @param sourceAddr is the source_addr.
* @param destAddrTon is the dest_addr_ton.
* @param destAddrNpi is the dest_addr_npi.
* @param destinationAddr is the destination_addr.
* @param esmClass is the esm_class.
* @param registeredDelivery is the registered_delivery.
* @param dataCoding is the data_coding.
* @param optionalParameters is the optional parameters.
* @return the composed bytes.
* @throws PDUStringException if there is an invalid string constraint
* found.
* @throws IOException if there is an IO error occur.
*/
byte[] sendDataSm(OutputStream os, int sequenceNumber, String serviceType,
TypeOfNumber sourceAddrTon, NumberingPlanIndicator sourceAddrNpi,
String sourceAddr, TypeOfNumber destAddrTon,
NumberingPlanIndicator destAddrNpi, String destinationAddr,
ESMClass esmClass, RegisteredDelivery registeredDelivery,
DataCoding dataCoding, OptionalParameter... optionalParameters)
throws PDUStringException, IOException;
/**
* Send data short message response command.
*
* @param os is the {@link OutputStream}.
* @param sequenceNumber is the sequence_number.
* @param messageId is the message_id.
* @param optionalParameters is the optional parameters.
* @return the composed bytes.
* @throws PDUStringException if there is an invalid string constraint
* found.
* @throws IOException if there is an IO error occur.
*/
byte[] sendDataSmResp(OutputStream os, int sequenceNumber,
String messageId, OptionalParameter... optionalParameters)
throws PDUStringException, IOException;
/**
* Send cancel short message command.
*
* @param os
* @param sequenceNumber
* @param serviceType
* @param messageId
* @param sourceAddrTon
* @param sourceAddrNpi
* @param sourceAddr
* @param destAddrTon
* @param destAddrNpi
* @param destinationAddr
* @return
* @throws PDUStringException
* @throws IOException
*/
byte[] sendCancelSm(OutputStream os, int sequenceNumber,
String serviceType, String messageId, TypeOfNumber sourceAddrTon,
NumberingPlanIndicator sourceAddrNpi, String sourceAddr,
TypeOfNumber destAddrTon, NumberingPlanIndicator destAddrNpi,
String destinationAddr) throws PDUStringException, IOException;
/**
* Send cancel short message response command.
*
* @param os
* @param sequenceNumber
* @return
* @throws IOException
*/
byte[] sendCancelSmResp(OutputStream os, int sequenceNumber)
throws IOException;
byte[] sendReplaceSm(OutputStream os, int sequenceNumber, String messageId,
TypeOfNumber sourceAddrTon, NumberingPlanIndicator sourceAddrNpi,
String sourceAddr, String scheduleDeliveryTime,
String validityPeriod, RegisteredDelivery registeredDelivery,
byte smDefaultMsgId, byte[] shortMessage)
throws PDUStringException, IOException;
byte[] sendReplaceSmResp(OutputStream os, int sequenceNumber)
throws IOException;
byte[] sendSubmiMulti(OutputStream os, int sequenceNumber,
String serviceType, TypeOfNumber sourceAddrTon,
NumberingPlanIndicator sourceAddrNpi, String sourceAddr,
DestinationAddress[] destinationAddresses, ESMClass esmClass,
byte protocolId, byte priorityFlag, String scheduleDeliveryTime,
String validityPeriod, RegisteredDelivery registeredDelivery,
ReplaceIfPresentFlag replaceIfPresentFlag, DataCoding dataCoding,
byte smDefaultMsgId, byte[] shortMessage,
OptionalParameter... optionalParameters) throws PDUStringException,
InvalidNumberOfDestinationsException, IOException;
byte[] sendSubmitMultiResp(OutputStream os, int sequenceNumber,
String messageId, UnsuccessDelivery... unsuccessDeliveries)
throws PDUStringException, IOException;
byte[] sendAlertNotification(OutputStream os, int sequenceNumber,
byte sourceAddrTon, byte sourceAddrNpi, String sourceAddr,
byte esmeAddrTon, byte esmeAddrNpi, String esmeAddr,
OptionalParameter... optionalParameters) throws PDUStringException,
IOException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -