org.bakelite.fax
Class PDFFaxMailet

java.lang.Object
  extended by org.apache.mailet.GenericMailet
      extended by org.bakelite.fax.PDFFaxMailet
All Implemented Interfaces:
org.apache.mailet.Mailet, org.apache.mailet.MailetConfig, LogWatcher.LogWatchCallback

public class PDFFaxMailet
extends org.apache.mailet.GenericMailet
implements LogWatcher.LogWatchCallback

Mailet acting as gateway between email and fax, from PDF document to TIFF sequence, using asterisk manager.

Author:
cchantep

Nested Class Summary
static class PDFFaxMailet.ResultType
          Fax sending result
 
Constructor Summary
PDFFaxMailet()
           
 
Method Summary
 void onException(java.lang.Exception e)
          Callback fired when an exception occurs while trying to watch.
 void onNewLine(java.lang.String line)
          Callback fired when a new |line| is read.
 void service(org.apache.mailet.Mail mail)
          
 
Methods inherited from class org.apache.mailet.GenericMailet
destroy, getInitParameter, getInitParameterNames, getMailetConfig, getMailetContext, getMailetInfo, getMailetName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFFaxMailet

public PDFFaxMailet()
Method Detail

service

public void service(org.apache.mailet.Mail mail)
             throws javax.mail.MessagingException

Specified by:
service in interface org.apache.mailet.Mailet
Specified by:
service in class org.apache.mailet.GenericMailet
Throws:
javax.mail.MessagingException

onNewLine

public void onNewLine(java.lang.String line)
Callback fired when a new |line| is read.

Specified by:
onNewLine in interface LogWatcher.LogWatchCallback
Parameters:
line - New read line

onException

public void onException(java.lang.Exception e)
Callback fired when an exception occurs while trying to watch.

Specified by:
onException in interface LogWatcher.LogWatchCallback
Parameters:
e - Thrown exception


Copyright © 2008. All Rights Reserved.