org.mule.transport.email
Class SmtpMessageDispatcher

java.lang.Object
  extended by org.mule.transport.AbstractConnectable
      extended by org.mule.transport.AbstractMessageDispatcher
          extended by org.mule.transport.email.SmtpMessageDispatcher
All Implemented Interfaces:
Disposable, Initialisable, Lifecycle, LifecycleStateEnabled, Startable, Stoppable, MessageProcessor, Connectable, MessageDispatcher

public class SmtpMessageDispatcher
extends AbstractMessageDispatcher

SmtpMessageDispatcher will dispatch Mule events as Mime email messages over an SMTP gateway. This contains a reference to a transport (and endpoint and connector, via superclasses)


Field Summary
 
Fields inherited from class org.mule.transport.AbstractMessageDispatcher
defaultOutboundTransformers, defaultResponseTransformers
 
Fields inherited from class org.mule.transport.AbstractConnectable
connected, connecting, connector, endpoint, lifecycleManager, logger, muleMessageFactory, retryTemplate, startOnConnect
 
Fields inherited from interface org.mule.api.transport.MessageDispatcher
RECEIVE_NO_WAIT, RECEIVE_WAIT_INDEFINITELY
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Constructor Summary
SmtpMessageDispatcher(OutboundEndpoint endpoint)
           
 
Method Summary
protected  void doConnect()
           
protected  void doDisconnect()
           
protected  void doDispatch(MuleEvent event)
           
protected  void doDispose()
           
protected  MuleMessage doSend(MuleEvent event)
           
protected  boolean isTransportConnected()
           
protected  void sendMailMessage(javax.mail.Message message)
           
 
Methods inherited from class org.mule.transport.AbstractMessageDispatcher
applyOutboundTransformers, applyResponseTransformers, createLifecycleManager, getDispatcherName, getEndpoint, getWorkManager, process, returnResponse, returnResponse
 
Methods inherited from class org.mule.transport.AbstractConnectable
activate, callDoStartWhenItIsConnected, connect, connectAndThenStart, createMuleMessage, createMuleMessage, createMuleMessage, createMuleMessageFactory, createNullMuleMessage, disconnect, dispose, disposeAndLogException, doInitialise, doStart, doStop, getConnectEventId, getConnectionDescription, getConnector, getLifecycleState, initialise, initializeMessageFactory, initializeRetryPolicy, isConnected, isConnecting, isDoStartMustFollowDoConnect, isDoThreading, isStarted, passivate, setEndpoint, start, stop, toString, validate, validateConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mule.api.transport.MessageDispatcher
activate, createMuleMessage, createMuleMessage, getConnector, passivate, validate
 
Methods inherited from interface org.mule.api.transport.Connectable
connect, disconnect, getConnectionDescription, isConnected, validateConnection
 
Methods inherited from interface org.mule.api.lifecycle.Initialisable
initialise
 
Methods inherited from interface org.mule.api.lifecycle.Startable
start
 
Methods inherited from interface org.mule.api.lifecycle.Stoppable
stop
 
Methods inherited from interface org.mule.api.lifecycle.Disposable
dispose
 
Methods inherited from interface org.mule.api.lifecycle.LifecycleStateEnabled
getLifecycleState
 

Constructor Detail

SmtpMessageDispatcher

public SmtpMessageDispatcher(OutboundEndpoint endpoint)
Method Detail

doConnect

protected void doConnect()
                  throws java.lang.Exception
Overrides:
doConnect in class AbstractConnectable
Throws:
java.lang.Exception

doDisconnect

protected void doDisconnect()
                     throws java.lang.Exception
Overrides:
doDisconnect in class AbstractConnectable
Throws:
java.lang.Exception

doDispatch

protected void doDispatch(MuleEvent event)
                   throws java.lang.Exception
Specified by:
doDispatch in class AbstractMessageDispatcher
Throws:
java.lang.Exception

doSend

protected MuleMessage doSend(MuleEvent event)
                      throws java.lang.Exception
Specified by:
doSend in class AbstractMessageDispatcher
Throws:
java.lang.Exception

sendMailMessage

protected void sendMailMessage(javax.mail.Message message)
                        throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

isTransportConnected

protected boolean isTransportConnected()

doDispose

protected void doDispose()
Overrides:
doDispose in class AbstractConnectable


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.