|
|||||||||
| 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.SMSPushAltiria
public final class SMSPushAltiria
Implementation for sending SMS messages with Altiria platform
| Constructor Summary | |
|---|---|
SMSPushAltiria()
|
|
| 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 sBaseUrl,
java.lang.String sDomain,
java.lang.String sAccount,
java.lang.String sAuthStr,
java.lang.String sMsisdn,
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 SMSPushAltiria()
| 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://www.altiria.net/sustituirPOSTsms/");
where sustituirPOSTsms is a customer specific string provided by AltiriasUser - Altiria Customer Account IdentifiersPassword - Altiria 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 sBaseUrl,
java.lang.String sDomain,
java.lang.String sAccount,
java.lang.String sAuthStr,
java.lang.String sMsisdn,
java.lang.String sText)
throws java.io.IOException,
java.lang.IllegalArgumentException
sBaseUrl - Altiria HTTP base URLsDomain - Altiria Customer DomainsAccount - Altiria Customer Account IdentifiersAuthStr - Altiria Customer Account PasswordsMsisdn - MSISDN Number with country preffix (no 00 nor +) like 34609090603sText - Message Text.
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 | ||||||||