Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.knowgate.sms
Class SMSPushSybase365

    java.lang.Object
      com.knowgate.sms.SMSPush
          com.knowgate.sms.SMSPushSybase365

    public final class SMSPushSybase365

extends SMSPush

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

### SMSPushSybase365

    public SMSPushSybase365()

Method Detail

### connect

    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

  Specified by:
    `connect` in class `SMSPush`
  Parameters:
    `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.sms
    `sUser` - Sybase 365 Customer Account Identifier
    `sPassword` - Sybase 365 Customer Account Password
    `oConnectionProps` - Not used, must be null
  Throws:
    `java.io.IOException`
    `java.net.MalformedURLException`
    `java.sql.SQLException`

### push

    public SMSResponse push(SMSMessage oMsg)
                     throws java.io.IOException,
                            java.sql.SQLException,
                            java.lang.IllegalArgumentException,
                            java.io.UnsupportedEncodingException

  Send SMS

  Specified by:
    `push` in class `SMSPush`
  Parameters:
    `SMSMessage` -
  Returns:
    SMSResponse
  Throws:
    `java.io.IOException`
    `java.sql.SQLException`
    `java.lang.IllegalArgumentException`
    `java.io.UnsupportedEncodingException`

### push

    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

  Open a new connection and send and SMS

  Parameters:
    `sAccount` - Sybase 365 Customer Account Identifier
    `sAuthStr` - Sybase 365 Customer Account Password
    `sMsisdn` - MSISDN Number with country preffix like +34609090603
    `sSubject` - 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.
  Returns:
    SMSResponse
  Throws:
    `java.io.IOException`
    `java.lang.IllegalArgumentException`

### close

    public void close()
               throws java.io.IOException,
                      java.sql.SQLException

  Description copied from class: `SMSPush`
  Close SMS HTTP Push Connection

  Specified by:
    `close` in class `SMSPush`
  Throws:
    `java.io.IOException`
    `java.sql.SQLException`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD