org.mule.providers.email
Class SmtpMessageDispatcher

java.lang.Object
  extended byorg.mule.providers.AbstractMessageDispatcher
      extended byorg.mule.providers.email.SmtpMessageDispatcher
All Implemented Interfaces:
Disposable, java.beans.ExceptionListener, UMOMessageDispatcher

public class SmtpMessageDispatcher
extends AbstractMessageDispatcher

Author:
Ross Mason

Field Summary
 
Fields inherited from class org.mule.providers.AbstractMessageDispatcher
disposed, disposeOnCompletion, doThreading, threadPool
 
Fields inherited from interface org.mule.umo.provider.UMOMessageDispatcher
RECEIVE_NO_WAIT, RECEIVE_WAIT_INDEFINITELY
 
Constructor Summary
SmtpMessageDispatcher(SmtpConnector connector)
           
 
Method Summary
 void doDispatch(UMOEvent event)
           
 void doDispose()
           
 UMOMessage doSend(UMOEvent event)
           
 UMOConnector getConnector()
           
 java.lang.Object getDelegateSession()
           
 java.lang.String getRecipients(Message message, Message.RecipientType type)
           
 UMOMessage receive(UMOEndpointURI endpointUri, long timeout)
           
protected  void sendMailMessage(Message message)
           
protected  void sendMailMessage(java.lang.String to, java.lang.String cc, java.lang.String bcc, java.lang.String subject, java.lang.String body)
           
 
Methods inherited from class org.mule.providers.AbstractMessageDispatcher
dispatch, dispose, exceptionThrown, isDisposed, send
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmtpMessageDispatcher

public SmtpMessageDispatcher(SmtpConnector connector)
Parameters:
connector -
Method Detail

doDispatch

public void doDispatch(UMOEvent event)
Specified by:
doDispatch in class AbstractMessageDispatcher

getDelegateSession

public java.lang.Object getDelegateSession()
                                    throws UMOException
Throws:
UMOException

receive

public UMOMessage receive(UMOEndpointURI endpointUri,
                          long timeout)
                   throws java.lang.Exception
Throws:
java.lang.Exception

doSend

public UMOMessage doSend(UMOEvent event)
                  throws java.lang.Exception
Specified by:
doSend in class AbstractMessageDispatcher
Throws:
java.lang.Exception

sendMailMessage

protected void sendMailMessage(java.lang.String to,
                               java.lang.String cc,
                               java.lang.String bcc,
                               java.lang.String subject,
                               java.lang.String body)
                        throws MuleException
Throws:
MuleException

sendMailMessage

protected void sendMailMessage(Message message)
                        throws MessagingException
Throws:
MessagingException

getConnector

public UMOConnector getConnector()
Specified by:
getConnector in interface UMOMessageDispatcher
Overrides:
getConnector in class AbstractMessageDispatcher

getRecipients

public java.lang.String getRecipients(Message message,
                                      Message.RecipientType type)

doDispose

public void doDispose()
               throws UMOException
Specified by:
doDispose in class AbstractMessageDispatcher
Throws:
UMOException


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.