rp.core
Class SMSProvider

java.lang.Object
  |
  +--rp.core.SMSProvider
Direct Known Subclasses:
HttpProvider, UnicumProvider

public abstract class SMSProvider
extends java.lang.Object

Abstract super class for all SMS provider


Constructor Summary
protected SMSProvider(java.lang.String name)
           
 
Method Summary
protected static java.lang.String encode(java.lang.String text)
          Encode string into format that does break URL, e.g., convert spaces to + characters, etc.
 java.lang.String getName()
           
abstract  int getNoChars()
           
abstract  java.util.List getPrefices()
           
protected static boolean isLetterOrDigit(char ch)
           
static void main(java.lang.String[] args)
           
abstract  boolean send(SMS message)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SMSProvider

protected SMSProvider(java.lang.String name)
Method Detail

isLetterOrDigit

protected static boolean isLetterOrDigit(char ch)

encode

protected static java.lang.String encode(java.lang.String text)
Encode string into format that does break URL, e.g., convert spaces to + characters, etc.

getName

public java.lang.String getName()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

send

public abstract boolean send(SMS message)

getNoChars

public abstract int getNoChars()

getPrefices

public abstract java.util.List getPrefices()

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception