public class SendSMSExample extends Object implements OutboundMessageGatewayListener
Constructor and Description |
---|
SendSMSExample() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Parse parameters or asking user for information.
|
void |
outboundMessageEvent(OutboundMessageEvent event)
Called when a outbound message is delivered or expired time for
delivering
|
void |
send(String port,
String text,
String number,
String service)
Create and setup the gateway to the outgoing sending messages
|
public void send(String port, String text, String number, String service) throws GatewayException, IOException
port
- port nametext
- text of messagenumber
- destination numberservice
- number of SMS serviceGatewayException
IOException
public void outboundMessageEvent(OutboundMessageEvent event)
outboundMessageEvent
in interface OutboundMessageGatewayListener
public static void main(String[] args) throws GatewayException, IOException
args
- GatewayException
IOException
Copyright © 2015–2016 jSMS4Pi. All rights reserved.