org.mule.providers.email
Class SmtpConnector
java.lang.Object
org.mule.providers.AbstractConnector
org.mule.providers.AbstractServiceEnabledConnector
org.mule.providers.email.SmtpConnector
- All Implemented Interfaces:
- Disposable, ExceptionListener, Initialisable, MailConnector, UMOConnectable, UMOConnector
- Direct Known Subclasses:
- SmtpsConnector
- public class SmtpConnector
- extends AbstractServiceEnabledConnector
- implements MailConnector
SmtpConnector is used to connect to and send data to an SMTP mail
server
| Fields inherited from class org.mule.providers.AbstractConnector |
connected, connecting, createDispatcherPerRequest, createMultipleTransactedReceivers, defaultInboundTransformer, defaultOutboundTransformer, defaultResponseTransformer, dispatcherFactory, dispatchers, disposed, disposing, exceptionListener, initialised, logger, name, receivers, serverSide, sessionHandler, started, startOnConnect |
| Methods inherited from class org.mule.providers.AbstractConnector |
checkDisposed, connect, createDispatcher, destroyReceiver, disconnect, dispose, disposeDispatchers, disposeReceivers, doConnect, doDisconnect, exceptionThrown, fireNotification, getConnectEventId, getConnectionDescription, getConnectionStrategy, getDefaultInboundTransformer, getDefaultOutboundTransformer, getDefaultResponseTransformer, getDispatcher, getDispatcher, getDispatcherFactory, getDispatchers, getDispatcherThreadingProfile, getExceptionListener, getName, getReceiver, getReceiver, getReceiverKey, getReceivers, getReceivers, getReceiverThreadingProfile, getReplyToHandler, getSessionHandler, getSupportedProtocols, handleException, handleWorkException, initialise, isConnected, isCreateDispatcherPerRequest, isCreateMultipleTransactedReceivers, isDisposed, isDisposing, isEnableMessageEvents, isRemoteSyncEnabled, isServerSide, isStarted, isUseSingleDispatcherThreadPool, isUseSingleReceiverThreadPool, lookupDispatcher, lookupReceiver, registerListener, registerSupportedProtocol, registerSupportedProtocolWithotPrefix, setConnectionStrategy, setCreateDispatcherPerRequest, setCreateMultipleTransactedReceivers, setDefaultInboundTransformer, setDefaultOutboundTransformer, setDefaultResponseTransformer, setDispatcherFactory, setDispatcherThreadingProfile, setEnableMessageEvents, setExceptionListener, setName, setReceiverThreadingProfile, setServerSide, setSessionHandler, setSupportedProtocols, setUseSingleDispatcherThreadPool, setUseSingleReceiverThreadPool, startConnector, stopConnector, supportsProtocol, unregisterListener, unregisterSupportedProtocol, workAccepted, workCompleted, workRejected, workStarted |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mule.umo.provider.UMOConnector |
getDispatcher, getDispatcherFactory, getExceptionListener, getMessageAdapter, getName, getStreamMessageAdapter, handleException, isDisposed, isDisposing, isRemoteSyncEnabled, isStarted, registerListener, setDispatcherFactory, setExceptionListener, setName, startConnector, stopConnector, supportsProtocol, unregisterListener |
DEFAULT_SMTP_HOST
public static final String DEFAULT_SMTP_HOST
- See Also:
- Constant Field Values
DEFAULT_SMTP_PORT
public static final int DEFAULT_SMTP_PORT
- See Also:
- Constant Field Values
DEFAULT_CONTENT_TYPE
public static final String DEFAULT_CONTENT_TYPE
- See Also:
- Constant Field Values
SmtpConnector
public SmtpConnector()
throws InitialisationException
createReceiver
public UMOMessageReceiver createReceiver(UMOComponent component,
UMOEndpoint endpoint)
throws Exception
- Overrides:
createReceiver in class AbstractServiceEnabledConnector
- Throws:
Exception
doStart
public void doStart()
throws UMOException
- Description copied from class:
AbstractConnector
- Template method to perform any work when starting the connectoe
- Overrides:
doStart in class AbstractConnector
- Throws:
UMOException - if the method fails
doStop
public void doStop()
throws UMOException
- Description copied from class:
AbstractConnector
- Template method to perform any work when stopping the connectoe
- Overrides:
doStop in class AbstractConnector
- Throws:
UMOException - if the method fails
doDispose
protected void doDispose()
- Description copied from class:
AbstractConnector
- Template method to perform any work when destroying the connectoe
- Overrides:
doDispose in class AbstractConnector
getProtocol
public String getProtocol()
- Specified by:
getProtocol in interface UMOConnector- Specified by:
getProtocol in class AbstractConnector
getFromAddress
public String getFromAddress()
- Returns:
- The default from address to use
getBccAddresses
public String getBccAddresses()
- Returns:
- the default comma separated list of BCC addresses to use
getCcAddresses
public String getCcAddresses()
- Returns:
- the default comma separated list of CC addresses to use
getSubject
public String getSubject()
- Returns:
- the default message subject to use
setBccAddresses
public void setBccAddresses(String string)
setCcAddresses
public void setCcAddresses(String string)
setSubject
public void setSubject(String string)
setFromAddress
public void setFromAddress(String string)
getReplyToAddresses
public String getReplyToAddresses()
setReplyToAddresses
public void setReplyToAddresses(String replyTo)
getCustomHeaders
public Properties getCustomHeaders()
setCustomHeaders
public void setCustomHeaders(Properties customHeaders)
getAuthenticator
public Authenticator getAuthenticator()
- Specified by:
getAuthenticator in interface MailConnector
setAuthenticator
public void setAuthenticator(Authenticator authenticator)
getContentType
public String getContentType()
setContentType
public void setContentType(String contentType)
getDefaultPort
public int getDefaultPort()
- Specified by:
getDefaultPort in interface MailConnector
getHost
public String getHost()
setHost
public void setHost(String host)
getPassword
public String getPassword()
setPassword
public void setPassword(String password)
getPort
public int getPort()
setPort
public void setPort(int port)
getUsername
public String getUsername()
setUsername
public void setUsername(String username)
Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.