|
|||||||||
| 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.SMSPushRealidadFutura
public final class SMSPushRealidadFutura
| Constructor Summary | |
|---|---|
SMSPushRealidadFutura()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SMSPushRealidadFutura()
| Method Detail |
|---|
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 SMSPushsBaseUrl - 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 number
java.io.IOException
java.net.MalformedURLException
java.sql.SQLException
public void close()
throws java.io.IOException,
java.sql.SQLException
close in class SMSPushjava.io.IOException
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 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||