public final class SMSPushRealidadFutura extends SMSPush
Constructor and Description |
---|
SMSPushRealidadFutura() |
Modifier and Type | Method and Description |
---|---|
void |
close()
This method does not do anything for Realidad Futura platform
|
void |
connect(java.lang.String sBaseUrl,
java.lang.String sUser,
java.lang.String sPassword,
java.util.Properties oConnectionProps)
Prepare internal state for sending messages
|
static void |
main(java.lang.String[] args) |
SMSResponse |
push(SMSMessage oMsg)
Open HTTP connection and send SMS
|
static SMSResponse |
push(java.lang.String sAccount,
java.lang.String sAuthStr,
java.lang.String sFrom,
java.lang.String sTo,
java.lang.String sText)
Open a new connection and send and SMS
|
public void connect(java.lang.String sBaseUrl, java.lang.String sUser, java.lang.String sPassword, java.util.Properties oConnectionProps) throws java.io.IOException, java.sql.SQLException, java.net.MalformedURLException
Prepare internal state for sending messages
connect
in class SMSPush
sBaseUrl
- Base URL. Typically it should be "http://railsfax.realidadfutura.net/sms/send_sms?",
if null then the default value http://railsfax.realidadfutura.net/sms/send_sms? is used
The target URL will be sUrl+"username="+sUser+"&password="+sPassword+"&from="+oConnectionProps.from+"&to="+34XXXXXXXXX+"&text=Message Text"sUser
- Realidad Futura Customer Account IdentifiersPassword
- Realidad Futura Customer Account PasswordoConnectionProps
- Set property from for changing sender's numberjava.io.IOException
java.net.MalformedURLException
java.sql.SQLException
public void close() throws java.io.IOException, java.sql.SQLException
public SMSResponse push(SMSMessage oMsg) throws java.io.IOException, java.sql.SQLException, java.lang.IllegalArgumentException, java.io.UnsupportedEncodingException
public static SMSResponse push(java.lang.String sAccount, java.lang.String sAuthStr, java.lang.String sFrom, java.lang.String sTo, java.lang.String sText) throws java.io.IOException, java.lang.IllegalArgumentException
sUser
- Realidad Futura Customer Account IdentifiersAuthStr
- Realidad Futura Customer Account PasswordsFrom
- Sender's NumbersTo
- Recipient's MSISDN Number with country preffix like 34609090603sText
- Message Text.java.io.IOException
java.lang.IllegalArgumentException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception