public class SMSSender extends Client
| Constructor and Description |
|---|
SMSSender(String appId, String server, int port, String keyFileName)Constructor for stand alone. |
SMSSender(String appId, String server, int port, String keyFileName, EventMessengerInterface messenger, String signatureAlgorithm, String signatureProvider)Constructor for NetPhantom integration. |
| Modifier and Type | Method and Description |
|---|---|
RequestHandler | connect()Connects to the SMS server. |
void | disconnectMe()Method used to disconnect from the SMS server. |
static SMSSender | getInstance()Method to access this single instance. |
void | log(int eventId, String msg)If we are stand-alone. |
String | sendAMessage(Message message)Method to send a message. |
String | sendAMessage(Message message, boolean queue)Method to send a message. |
String | sendAMessage(String phoneNumber, String msg)Method to send a message. |
disconnect, getNextMessage, isConnected, numberOfWaitingMessages, sendpublic SMSSender(String appId, String server, int port, String keyFileName, EventMessengerInterface messenger, String signatureAlgorithm, String signatureProvider) throws ConnectionException
appId - application identificationserver -port -keyFileName -messenger -signatureAlgorithm -signatureProvider -ConnectionException - for set-up errors.public SMSSender(String appId, String server, int port, String keyFileName) throws ConnectionException
appId - application identificationserver -port -keyFileName -ConnectionException - for set-up errors.public RequestHandler connect()
public String sendAMessage(String phoneNumber, String msg)
phoneNumber -msg - message string to send.public String sendAMessage(Message message)
message - to send.public String sendAMessage(Message message, boolean queue)
message - to send.queue - true for putting the message in the send queue.public void disconnectMe()
public static SMSSender getInstance()
public void log(int eventId,
String msg)eventId - The event ID.msg - Message to log.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.