org.mmbase.sms
Class Receiver

java.lang.Object
  extended by org.mmbase.sms.Receiver
All Implemented Interfaces:
Runnable

public class Receiver
extends Object
implements Runnable

The core of this class is offer(SMS) which offers an SMS message to a queue. This queue is emptied and offered to Handlers which are configured in <config dir>utils/sms_handlers.xml.

Version:
$Id: Receiver.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Michiel Meeuwissen

Field Summary
static String DEFAULT_CONFIG_FILE
           
 
Constructor Summary
protected Receiver(String configFile)
           
 
Method Summary
 List<Handler> getHandlers()
           
static Receiver getReceiver()
           
protected static Receiver getReceiver(String config)
           
static boolean offer(SMS sms)
          Offers a SMS message for 'handling' by the SMS Handlers.
protected static boolean offer(String config, SMS sms)
           
 void run()
          Looks in the queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONFIG_FILE

public static final String DEFAULT_CONFIG_FILE
See Also:
Constant Field Values
Constructor Detail

Receiver

protected Receiver(String configFile)
Method Detail

getReceiver

protected static Receiver getReceiver(String config)

getReceiver

public static Receiver getReceiver()

offer

protected static boolean offer(String config,
                               SMS sms)

offer

public static boolean offer(SMS sms)
Offers a SMS message for 'handling' by the SMS Handlers.


getHandlers

public List<Handler> getHandlers()

run

public void run()
Looks in the queue. If something found, creates a cloud (using class security) and adds SMS objects to the Handlers.

Specified by:
run in interface Runnable


MMBase 2.0-SNAPSHOT - null