lazyj.notifications
Class YMSender

java.lang.Object
  extended by lazyj.notifications.Sender
      extended by lazyj.notifications.YMSender

public class YMSender
extends Sender

Send a message via Yahoo! Messenger. Please make sure you loaded the latest & patched jymsg9 in your classpath. For this to work you have to specify the following options in the configuration:


You can also specify a list of default recipients with:

If you want to also receive back messages you can register a class that implements ymsg.network.event.SessionListener by:

Since:
Nov 17, 2007 (1.0.3)
Author:
costing

Constructor Summary
YMSender()
           
 
Method Summary
 boolean init(ExtProperties prop, java.lang.String keyPrefix)
          This method is called by Notifier after an instance of a class implementing this interface is created with the default constructor.
 boolean send(Message m)
          Send the message to the target (mail / instant message / log file etc)
 
Methods inherited from class lazyj.notifications.Sender
getClassInstance, getClassLoader, setClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YMSender

public YMSender()
Method Detail

init

public boolean init(ExtProperties prop,
                    java.lang.String keyPrefix)
Description copied from class: Sender
This method is called by Notifier after an instance of a class implementing this interface is created with the default constructor. Each implementing class should take what is useful for it from the given configuration, taking into account (only) the keys with the given prefix.

Specified by:
init in class Sender
Parameters:
prop - configuration contents
keyPrefix - prefix for the subset of options that are relevant to this instance
Returns:
true if the initialization was ok, false if not (missing option etc)

send

public boolean send(Message m)
Description copied from class: Sender
Send the message to the target (mail / instant message / log file etc)

Specified by:
send in class Sender
Parameters:
m - message to send
Returns:
true if sending went ok, false if not