gnu.hylafax.util
Class Notifier

java.lang.Object
  |
  +--gnu.hylafax.job.BasicSendNotifier
        |
        +--gnu.hylafax.job.SendAndReceiveNotifier
              |
              +--gnu.hylafax.util.Notifier
All Implemented Interfaces:
ReceiveNotifier, SendNotifier

public class Notifier
extends SendAndReceiveNotifier

This class implements a callback program as supplied in the notify script with the HylaFAX distribution. The following command line options are supported.

 -f 		queue file name
 -r 		reason code
 -t 

Refer to the notify man page (from the HylaFAX distribution) for more information. This program depends on the gnu.getopt package for command line parsing. gnu.getopt (java-getopt) can be found at http://www.urbanophile.com/arenn/

Version:
$Id: Notifier.java,v 1.2 2005/06/02 03:37:21 sjardine Exp $
Author:
$Author: sjardine $

Field Summary
static java.lang.String KEY_PROPERTIES
           
static boolean OP_RECEIVE
           
static boolean OP_SEND
           
 
Constructor Summary
Notifier()
           
 
Method Summary
static void main(java.lang.String[] arguments)
           
static void notifyReceiveListeners(java.lang.Class klass, java.lang.String file, java.lang.String modem, java.lang.String commid, java.lang.String message, java.lang.String cidnumber, java.lang.String cidname)
           
static void notifySendListeners(java.lang.Class klass, long jobid, java.lang.String file, java.lang.String reason, java.lang.String time, java.lang.String nextAttempt)
           
static void usage(java.io.PrintStream out)
          prints program usage
 
Methods inherited from class gnu.hylafax.job.SendAndReceiveNotifier
addReceiveListener, notifyReceiveListeners, removeReceiveListener
 
Methods inherited from class gnu.hylafax.job.BasicSendNotifier
addSendListener, notifySendListeners, removeSendListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OP_SEND

public static final boolean OP_SEND

OP_RECEIVE

public static final boolean OP_RECEIVE

KEY_PROPERTIES

public static final java.lang.String KEY_PROPERTIES
Constructor Detail

Notifier

public Notifier()
Method Detail

main

public static void main(java.lang.String[] arguments)
                 throws java.lang.ClassNotFoundException,
                        java.lang.InstantiationException,
                        java.lang.IllegalAccessException,
                        java.io.FileNotFoundException,
                        java.io.IOException

notifySendListeners

public static void notifySendListeners(java.lang.Class klass,
                                       long jobid,
                                       java.lang.String file,
                                       java.lang.String reason,
                                       java.lang.String time,
                                       java.lang.String nextAttempt)
                                throws java.lang.ClassNotFoundException,
                                       java.lang.InstantiationException,
                                       java.lang.IllegalAccessException

notifyReceiveListeners

public static void notifyReceiveListeners(java.lang.Class klass,
                                          java.lang.String file,
                                          java.lang.String modem,
                                          java.lang.String commid,
                                          java.lang.String message,
                                          java.lang.String cidnumber,
                                          java.lang.String cidname)
                                   throws java.lang.ClassNotFoundException,
                                          java.lang.InstantiationException,
                                          java.lang.IllegalAccessException

usage

public static void usage(java.io.PrintStream out)
prints program usage