gnu.hylafax.util
Class MailListener

java.lang.Object
  |
  +--gnu.hylafax.util.MailListener
All Implemented Interfaces:
ReceiveListener, SendListener

public class MailListener
extends java.lang.Object
implements SendListener, ReceiveListener

This class implements an example fax job listener. It emails the status updates to a given mailbox.

Version:
$Id: MailListener.java,v 1.2 2005/06/02 03:37:21 sjardine Exp $
Author:
$Author: sjardine $
See Also:
SendNotifier, SendEvent, ReceiveNotifier, ReceiveEvent, Notifier

Constructor Summary
MailListener()
           
 
Method Summary
 void onReceiveEvent(ReceiveEvent event)
          This method is called when a fax-received event occurs.
 void onSendEvent(SendEvent event)
          This method is called when send Job state changes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailListener

public MailListener()
Method Detail

onSendEvent

public void onSendEvent(SendEvent event)
Description copied from interface: SendListener
This method is called when send Job state changes.
Specified by:
onSendEvent in interface SendListener

onReceiveEvent

public void onReceiveEvent(ReceiveEvent event)
This method is called when a fax-received event occurs. It composes an email, attaching relevant files and mails it to a target mailbox.
Specified by:
onReceiveEvent in interface ReceiveListener