|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.knowgate.sms.SMSPush
com.knowgate.sms.SMSPushSybase365
public final class SMSPushSybase365
Implementation for sending SMS messages with Sybase 365 platform
| Constructor Summary | |
|---|---|
SMSPushSybase365()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SMSPushSybase365()
| Method Detail |
|---|
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 SMSPushsUrl - 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 null
java.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
push in class SMSPushSMSMessage -
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
public void close()
throws java.io.IOException,
java.sql.SQLException
SMSPush
close in class SMSPushjava.io.IOException
java.sql.SQLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||