org.mmbase.sms
Class Receiver
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CONFIG_FILE
public static final String DEFAULT_CONFIG_FILE
- See Also:
- Constant Field Values
Receiver
protected Receiver(String configFile)
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