public final class SMSPushSybase365 extends SMSPush
Implementation for sending SMS messages with Sybase 365 platform
Constructor and Description |
---|
SMSPushSybase365() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close SMS HTTP Push Connection
|
void |
connect(java.lang.String sUrl,
java.lang.String sUser,
java.lang.String sPassword,
java.util.Properties oConnectionProps)
Open HTTP connection for sending messages
|
SMSResponse |
push(SMSMessage oMsg)
Send SMS
|
static SMSResponse |
push(java.lang.String sAccount,
java.lang.String sAuthStr,
java.lang.String sMsisdn,
java.lang.String sSubject,
java.lang.String sText)
Open a new connection and send and SMS
|
public void connect(java.lang.String sUrl, java.lang.String sUser, java.lang.String sPassword, java.util.Properties oConnectionProps) throws java.io.IOException, java.sql.SQLException, java.net.MalformedURLException
Open HTTP connection for sending messages
connect
in class SMSPush
sUrl
- Base URL. Typically it should be "http://messaging.mobileway.com/",
if null then the default value http://messaging.mobileway.com/ is used
The target URL will be sUrl+sUser+"/"+sUser+".sms"
For example, if sUser is kwgate_pus01120 then the target URL will be
http://messaging.mobileway.com/kwgate_pus01120/kwgate_pus01120.smssUser
- Sybase 365 Customer Account IdentifiersPassword
- Sybase 365 Customer Account PasswordoConnectionProps
- Not used, must be nulljava.io.IOException
java.net.MalformedURLException
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 sMsisdn, java.lang.String sSubject, java.lang.String sText) throws java.io.IOException, java.lang.IllegalArgumentException
sAccount
- Sybase 365 Customer Account IdentifiersAuthStr
- Sybase 365 Customer Account PasswordsMsisdn
- MSISDN Number with country preffix like +34609090603sSubject
- Message subject. Will not be sent to recipient but returned in status reports by Sybase 365.sText
- Message Text. If it is over 160 character it will be splitted over several messages.java.io.IOException
java.lang.IllegalArgumentException