| Constructor and Description |
|---|
AutoReconnectGateway(String remoteIpAddress,
int remotePort,
org.jsmpp.session.BindParameter bindParam)
Construct auto reconnect gateway with specified IP address, port and SMPP Bind parameters.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
String |
submitShortMessage(String serviceType,
org.jsmpp.bean.TypeOfNumber sourceAddrTon,
org.jsmpp.bean.NumberingPlanIndicator sourceAddrNpi,
String sourceAddr,
org.jsmpp.bean.TypeOfNumber destAddrTon,
org.jsmpp.bean.NumberingPlanIndicator destAddrNpi,
String destinationAddr,
org.jsmpp.bean.ESMClass esmClass,
byte protocolId,
byte priorityFlag,
String scheduleDeliveryTime,
String validityPeriod,
org.jsmpp.bean.RegisteredDelivery registeredDelivery,
byte replaceIfPresentFlag,
org.jsmpp.bean.DataCoding dataCoding,
byte smDefaultMsgId,
byte[] shortMessage,
org.jsmpp.bean.OptionalParameter... optionalParameters)
Submit the short message.
|
public AutoReconnectGateway(String remoteIpAddress, int remotePort, org.jsmpp.session.BindParameter bindParam) throws IOException
remoteIpAddress - is the SMSC IP address or hostname.remotePort - is the SMSC port.bindParam - is the SMPP Bind parameters object.IOException - if the creation of new session failed.public static void main(String[] args) throws IOException
IOExceptionpublic String submitShortMessage(String serviceType, org.jsmpp.bean.TypeOfNumber sourceAddrTon, org.jsmpp.bean.NumberingPlanIndicator sourceAddrNpi, String sourceAddr, org.jsmpp.bean.TypeOfNumber destAddrTon, org.jsmpp.bean.NumberingPlanIndicator destAddrNpi, String destinationAddr, org.jsmpp.bean.ESMClass esmClass, byte protocolId, byte priorityFlag, String scheduleDeliveryTime, String validityPeriod, org.jsmpp.bean.RegisteredDelivery registeredDelivery, byte replaceIfPresentFlag, org.jsmpp.bean.DataCoding dataCoding, byte smDefaultMsgId, byte[] shortMessage, org.jsmpp.bean.OptionalParameter... optionalParameters) throws org.jsmpp.PDUException, org.jsmpp.extra.ResponseTimeoutException, org.jsmpp.InvalidResponseException, org.jsmpp.extra.NegativeResponseException, IOException
GatewaySMPPSession.submitShortMessage(String, TypeOfNumber, NumberingPlanIndicator, String, TypeOfNumber, NumberingPlanIndicator, String, ESMClass, byte, byte, String, String, RegisteredDelivery, byte, DataCoding, byte, byte[], OptionalParameter...).submitShortMessage in interface GatewayserviceType - is the service_type.sourceAddrTon - is the source_addr_ton.sourceAddrNpi - is the source_addr_npi.sourceAddr - is the source_addr.destAddrTon - is the dest_addr_ton.destAddrNpi - is the dest_addr_npi.destinationAddr - is the destination_addr.esmClass - is the esm_class.protocolId - is the protocol_id.priorityFlag - is the priority_flag.scheduleDeliveryTime - is the schedule_delivery_time.validityPeriod - is the validity_period.registeredDelivery - is the registered_delivery.replaceIfPresentFlag - is the replace_if_present_flag.dataCoding - is the data_coding.smDefaultMsgId - is the sm_default_msg_id.shortMessage - is the short_message.optionalParameters - is the optional parameters.org.jsmpp.PDUException - if there is invalid PDU parameter found..org.jsmpp.extra.ResponseTimeoutException - if timeout has been reach.org.jsmpp.InvalidResponseException - if response is invalid.org.jsmpp.extra.NegativeResponseException - if negative response received.IOException - if there is an I/O error found.Copyright © 2025 WSO2. All rights reserved.