org.bibop.xml.xforge.components.mail
Class SendMail

java.lang.Object
  |
  +--org.bibop.xml.xforge.components.AbstractXForgeComponent
        |
        +--org.bibop.xml.xforge.components.AbstractXForgePoolableComponent
              |
              +--org.bibop.xml.xforge.components.mail.SendMail
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.excalibur.pool.Poolable, PrefixesMonitor, XForgeComponent, XMLProducer

public class SendMail
extends AbstractXForgePoolableComponent

send mail

Version:
1.0
Author:
Alberto Garoffolo

Field Summary
protected  boolean internally
           
protected  java.lang.String password
           
protected  java.lang.String smtpserver
           
protected  java.lang.String username
           
 
Fields inherited from class org.bibop.xml.xforge.components.AbstractXForgeComponent
contentHandler, context, lexicalHandler, log, parameters, po
 
Constructor Summary
SendMail()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration config)
           
protected  void error2Sax(java.lang.String message)
           
protected  void error2Sax(java.lang.String message, java.lang.Exception ex)
           
protected  java.util.List getAttachments(java.lang.String strattachments)
           
protected  void send(javax.mail.Session session, java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String text, java.util.List attachments)
           
 void toSax()
          method that runs the component
 
Methods inherited from class org.bibop.xml.xforge.components.AbstractXForgeComponent
enableLogging, getActivePrefixes, output, output, setConsumer, setContentHandler, setLexicalHandler, setParameters, setParentPrefixesMonitor, setProcessingOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

internally

protected boolean internally

smtpserver

protected java.lang.String smtpserver

username

protected java.lang.String username

password

protected java.lang.String password
Constructor Detail

SendMail

public SendMail()
Method Detail

configure

public void configure(org.apache.avalon.framework.configuration.Configuration config)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Overrides:
configure in class AbstractXForgeComponent
org.apache.avalon.framework.configuration.ConfigurationException

toSax

public void toSax()
           throws org.xml.sax.SAXException
method that runs the component

Throws:
org.xml.sax.SAXException

error2Sax

protected void error2Sax(java.lang.String message)
                  throws org.xml.sax.SAXException
org.xml.sax.SAXException

error2Sax

protected void error2Sax(java.lang.String message,
                         java.lang.Exception ex)
                  throws org.xml.sax.SAXException
org.xml.sax.SAXException

getAttachments

protected java.util.List getAttachments(java.lang.String strattachments)

send

protected void send(javax.mail.Session session,
                    java.lang.String from,
                    java.lang.String to,
                    java.lang.String cc,
                    java.lang.String subject,
                    java.lang.String text,
                    java.util.List attachments)
             throws javax.mail.MessagingException
javax.mail.MessagingException


Copyright 2003 Bibop Research International. All Rights Reserved.