org.mule.transport.email
Class SmtpConnector
java.lang.Object
org.mule.transport.AbstractConnector
org.mule.transport.email.AbstractMailConnector
org.mule.transport.email.SmtpConnector
- All Implemented Interfaces:
- EventListener, javax.resource.spi.work.WorkListener, Disposable, Initialisable, Lifecycle, LifecycleStateEnabled, Startable, Stoppable, NameableObject, NamedObject, Connectable, Connector
- Direct Known Subclasses:
- GmailSmtpConnector, SmtpsConnector
public class SmtpConnector
- extends AbstractMailConnector
SmtpConnector
is used to connect to and send data to an SMTP mail
server
Fields inherited from class org.mule.transport.AbstractConnector |
createMultipleTransactedReceivers, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, dispatcherFactory, dispatcherPoolFactory, dispatchers, initialStateStopped, lifecycleManager, logger, muleContext, muleMessageFactory, name, numberOfConcurrentTransactedReceivers, PROPERTY_POLLING_FREQUENCY, receivers, requesterFactory, requesters, serviceDescriptor, serviceOverrides, sessionHandler, startOnConnect |
Methods inherited from class org.mule.transport.email.AbstractMailConnector |
doConnect, doDisconnect, doDispose, doInitialise, doStart, doStop, dumpProperties, extendPropertiesForSession, getAuthenticator, getBaseProtocol, getMailboxFolder, getSessionDetails, newSession, setAuthenticator, setMailboxFolder, urlFromEndpoint |
Methods inherited from class org.mule.transport.AbstractConnector |
clearDispatchers, clearRequesters, configureDispatcherPool, connect, createDefaultRedeliveryPolicy, createDispatcherMessageProcessor, createMuleMessageFactory, createOperationResource, createScheduler, destroyReceiver, disconnect, dispose, disposeReceivers, disposeWorkManagers, doUnregisterListener, fireNotification, getConnectEventId, getConnectionDescription, getDefaultExchangePattern, getDefaultInboundTransformers, getDefaultOutboundTransformers, getDefaultResponseTransformers, getDispatcherFactory, getDispatcherPoolFactory, getDispatcherThreadingProfile, getDispatcherWorkManager, getInboundExchangePatterns, getLifecycleState, getMaxDispatchersActive, getMaxRequestersActive, getMaxTotalDispatchers, getMuleContext, getMuleMessageFactory, getName, getNumberOfConcurrentTransactedReceivers, getOperationResourceFactory, getOutboundExchangePatterns, getOutputStream, getReceiver, getReceiverKey, getReceivers, getReceivers, getReceiverThreadingProfile, getReceiverWorkManager, getReplyToHandler, getRequesterFactory, getRequesterThreadingProfile, getRequesterWorkManager, getRetryPolicyTemplate, getScheduler, getServiceDescriptor, getServiceOverrides, getSessionHandler, getSupportedProtocols, getTransactionalResource, handleWorkException, initFromServiceDescriptor, initialise, initialiseFromUrl, initWorkManagers, isConnected, isConnecting, isCreateMultipleTransactedReceivers, isDisposed, isEnableMessageEvents, isInitialised, isInitialStateStopped, isResponseEnabled, isStarted, isStarting, isStopped, isStopping, isValidateConnections, lookupReceiver, registerListener, registerSupportedMetaProtocol, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, request, request, setConnected, setConnecting, setCreateMultipleTransactedReceivers, setDispatcherFactory, setDispatcherPoolFactory, setDispatcherPoolMaxWait, setDispatcherPoolWhenExhaustedAction, setDispatcherThreadingProfile, setDynamicNotification, setInitialStateStopped, setMaxDispatchersActive, setMaxRequestersActive, setName, setNumberOfConcurrentTransactedReceivers, setReceiverThreadingProfile, setRequesterFactory, setRequesterPoolMaxWait, setRequesterPoolWhenExhaustedAction, setRequesterThreadingProfile, setRetryPolicyTemplate, setServiceOverrides, setSessionHandler, setSupportedProtocols, setupDispatchReturn, setupRequestReturn, setValidateConnections, shutdownScheduler, start, startAfterConnect, stop, supportsProtocol, toString, unregisterListener, unregisterSupportedProtocol, updateCachedNotificationHandler, validateConnection, workAccepted, workCompleted, workRejected, workStarted |
SMTP
public static final String SMTP
- See Also:
- Constant Field Values
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(MuleContext context)
getProtocol
public String getProtocol()
- Returns:
- the primary protocol name for endpoints of this connector
createReceiver
public MessageReceiver createReceiver(FlowConstruct flowConstruct,
InboundEndpoint endpoint)
throws Exception
- Description copied from class:
AbstractConnector
- Create a Message receiver for this connector
- Overrides:
createReceiver
in class AbstractConnector
- Parameters:
flowConstruct
- the service that will receive events from this receiver, the
listenerendpoint
- the endpoint that defies this inbound communication
- Returns:
- an instance of the message receiver defined in this connectors'
TransportServiceDescriptor
initialised using the service and endpoint.
- Throws:
Exception
- if there is a problem creating the receiver. This exception
really depends on the underlying transport, thus any exception
could be thrown
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)
getContentType
public String getContentType()
setContentType
public void setContentType(String contentType)
getDefaultPort
public int getDefaultPort()
- Overrides:
getDefaultPort
in class AbstractMailConnector
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.