public class SmtpsConnector extends SmtpConnector implements TlsIndirectTrustStore, TlsIndirectKeyStore
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SMTPS_PORT |
static String |
DEFAULT_SOCKET_FACTORY |
static String |
SMTPS |
DEFAULT_CONTENT_TYPE, DEFAULT_SMTP_HOST, DEFAULT_SMTP_PORT, SMTP
ATTACHMENT_HEADERS_PROPERTY_POSTFIX, MAILBOX
connecting, createMultipleTransactedReceivers, DEFAULT_CONTEXT_START_TIMEOUT, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, dispatcherFactory, dispatcherPoolFactory, dispatchers, initialStateStopped, lifecycleManager, logger, MULE_CONTEXT_START_TIMEOUT_SYSTEM_PROPERTY, muleContext, muleMessageFactory, name, numberOfConcurrentTransactedReceivers, PROPERTY_POLLING_FREQUENCY, receivers, requesterFactory, requesters, serviceDescriptor, serviceOverrides, sessionHandler, startOnConnect
INT_VALUE_NOT_SET
PHASE_NAME
PROPERTY_NAME
Constructor and Description |
---|
SmtpsConnector(MuleContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
doInitialise() |
protected void |
extendPropertiesForSession(Properties global,
Properties local,
URLName url)
Subclasses should extend this to add further properties.
|
String |
getBaseProtocol()
Some protocols (eg secure extensions) extend a "base" protocol.
|
String |
getClientKeyStore() |
String |
getClientKeyStorePassword() |
String |
getClientKeyStoreType() |
String |
getProtocol() |
String |
getSocketFactory() |
String |
getSocketFactoryFallback() |
String |
getTrustStore() |
String |
getTrustStorePassword() |
void |
setClientKeyStore(String name) |
void |
setClientKeyStorePassword(String clientKeyStorePassword) |
void |
setClientKeyStoreType(String clientKeyStoreType) |
void |
setSocketFactory(String sslSocketFactory) |
void |
setSocketFactoryFallback(String socketFactoryFallback) |
void |
setTrustStore(String trustStore) |
void |
setTrustStorePassword(String trustStorePassword) |
createReceiver, getBccAddresses, getCcAddresses, getContentType, getCustomHeaders, getDefaultPort, getFromAddress, getReplyToAddresses, getSubject, setBccAddresses, setCcAddresses, setContentType, setCustomHeaders, setFromAddress, setReplyToAddresses, setSubject
doConnect, doDisconnect, doDispose, doStart, doStop, dumpProperties, getAuthenticator, getMailboxFolder, getSessionDetails, newSession, setAuthenticator, setMailboxFolder, urlFromEndpoint
borrowDispatcher, clearDispatchers, clearRequesters, configureDispatcherPool, connect, connectConnectorAndReceivers, createDefaultRedeliveryPolicy, createDispatcherMessageProcessor, createMuleMessageFactory, createOperationResource, createScheduler, destroyReceiver, disconnect, dispose, disposeReceivers, disposeWorkManagers, doUnregisterListener, fireNotification, fireNotification, getCanonicalURI, 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, isEnableMessageEvents, isInitialised, isInitialStateStopped, isResponseEnabled, isStarted, isStarting, isStopped, isStopping, isValidateConnections, lookupReceiver, registerListener, registerSupportedMetaProtocol, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, request, request, returnDispatcher, 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
getAnnotation, getAnnotations, setAnnotations
public static final String SMTPS
public static final String DEFAULT_SOCKET_FACTORY
public static final int DEFAULT_SMTPS_PORT
public SmtpsConnector(MuleContext context)
public String getProtocol()
getProtocol
in interface Connector
getProtocol
in class SmtpConnector
public String getBaseProtocol()
AbstractMailConnector
getBaseProtocol
in class AbstractMailConnector
protected void doInitialise() throws InitialisationException
doInitialise
in class AbstractMailConnector
InitialisationException
protected void extendPropertiesForSession(Properties global, Properties local, URLName url)
AbstractMailConnector
extendPropertiesForSession
in class AbstractMailConnector
global
- system propertieslocal
- local properties (specific to one session)url
- the endpoint urlpublic String getSocketFactory()
public void setSocketFactory(String sslSocketFactory)
public String getSocketFactoryFallback()
public void setSocketFactoryFallback(String socketFactoryFallback)
public String getTrustStore()
getTrustStore
in interface TlsIndirectTrustStore
public String getTrustStorePassword()
getTrustStorePassword
in interface TlsIndirectTrustStore
TlsIndirectTrustStore.getTrustStore()
public void setTrustStore(String trustStore) throws IOException
setTrustStore
in interface TlsIndirectTrustStore
trustStore
- The location of the keystore that contains public certificates of trusted servers.IOException
- If the location cannot be resolved via the file system or classpathpublic void setTrustStorePassword(String trustStorePassword)
setTrustStorePassword
in interface TlsIndirectTrustStore
trustStorePassword
- The password used to protected the trust store defined in
TlsIndirectTrustStore.setTrustStore(String)
public String getClientKeyStore()
getClientKeyStore
in interface TlsIndirectKeyStore
public String getClientKeyStorePassword()
getClientKeyStorePassword
in interface TlsIndirectKeyStore
public String getClientKeyStoreType()
getClientKeyStoreType
in interface TlsIndirectKeyStore
TlsIndirectKeyStore.setClientKeyStore(String)
public void setClientKeyStore(String name) throws IOException
setClientKeyStore
in interface TlsIndirectKeyStore
name
- The location of the keystore that contains public certificates and private keys
for identification.IOException
- If the location cannot be resolved via the file system or classpathpublic void setClientKeyStorePassword(String clientKeyStorePassword)
setClientKeyStorePassword
in interface TlsIndirectKeyStore
clientKeyStorePassword
- The password used to protect the keystore itselfpublic void setClientKeyStoreType(String clientKeyStoreType)
setClientKeyStoreType
in interface TlsIndirectKeyStore
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.