org.mmbase.sms.cmtelecom
Class CMTelecomSender

java.lang.Object
  extended by org.mmbase.sms.Sender
      extended by org.mmbase.sms.cmtelecom.CMTelecomSender

public class CMTelecomSender
extends Sender

A realization of Sender, which communicates to a server implemented by 'cmtelecom'. (http://www.clubmessage.biz/).

Version:
$Id: CMTelecomSender.java 38483 2009-09-07 19:00:53Z nico $
Author:
Michiel Meeuwissen

Nested Class Summary
protected static interface CMTelecomSender.Appender
           
 
Field Summary
static Map<String,String> configuration
           
 
Constructor Summary
CMTelecomSender()
           
 
Method Summary
 void add(SMS s, XmlWriter w)
           
 Collection<SMS> getQueue()
           
static void main(String[] argv)
          Main for testing only
 boolean offer(SMS sms)
          Offers an SMS for sending.
protected  void send(CMTelecomSender.Appender body, String reference)
           
protected  void send(OutputStream out, CMTelecomSender.Appender body, String reference)
           
protected  void send(OutputStream out, SMS sms)
           
 boolean send(SMS sms)
          Sends an SMS, immediately.
(package private)  void trigger()
           
 
Methods inherited from class org.mmbase.sms.Sender
determinActive, getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configuration

public static final Map<String,String> configuration
Constructor Detail

CMTelecomSender

public CMTelecomSender()
Method Detail

add

public void add(SMS s,
                XmlWriter w)
         throws SAXException
Throws:
SAXException

send

protected void send(CMTelecomSender.Appender body,
                    String reference)
             throws SAXException,
                    IOException
Throws:
SAXException
IOException

send

protected void send(OutputStream out,
                    CMTelecomSender.Appender body,
                    String reference)
             throws SAXException,
                    IOException
Throws:
SAXException
IOException

send

protected void send(OutputStream out,
                    SMS sms)
             throws SAXException,
                    IOException
Throws:
SAXException
IOException

trigger

void trigger()
       throws SAXException,
              IOException
Throws:
SAXException
IOException

send

public boolean send(SMS sms)
Description copied from class: Sender
Sends an SMS, immediately.

Specified by:
send in class Sender

offer

public boolean offer(SMS sms)
Description copied from class: Sender
Offers an SMS for sending. It needs not do this immediately, but may collect some, and offer them in batch to an SMS gateway.

Specified by:
offer in class Sender

getQueue

public Collection<SMS> getQueue()
Specified by:
getQueue in class Sender

main

public static void main(String[] argv)
                 throws Exception
Main for testing only

Throws:
Exception


MMBase 2.0-SNAPSHOT - null