org.mule.providers.email
Class AbstractTlsRetrieveMailConnector
java.lang.Object
org.mule.providers.AbstractConnector
org.mule.providers.email.AbstractMailConnector
org.mule.providers.email.AbstractRetrieveMailConnector
org.mule.providers.email.AbstractTlsRetrieveMailConnector
- All Implemented Interfaces:
- Disposable, EventListener, ExceptionListener, Initialisable, TlsIndirectKeyStore, TlsIndirectTrustStore, UMOConnectable, UMOConnector, WorkListener
- Direct Known Subclasses:
- ImapsConnector, Pop3sConnector
- public abstract class AbstractTlsRetrieveMailConnector
- extends AbstractRetrieveMailConnector
- implements TlsIndirectTrustStore, TlsIndirectKeyStore
Support for connecting to and receiving email from a secure mailbox (the exact protocol depends on
the subclass).
Fields inherited from class org.mule.providers.AbstractConnector |
connected, connecting, connectionStrategy, createMultipleTransactedReceivers, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, defaultInboundTransformer, defaultOutboundTransformer, defaultResponseTransformer, dispatcherFactory, dispatchers, disposed, disposing, exceptionListener, initialised, logger, name, numberOfConcurrentTransactedReceivers, receivers, serviceDescriptor, serviceOverrides, sessionHandler, started, startOnConnect |
Methods inherited from class org.mule.providers.email.AbstractMailConnector |
doConnect, doDisconnect, doDispose, doStart, doStop, dumpProperties, getAuthenticator, getBaseProtocol, getDefaultPort, getMailboxFolder, getSessionDetails, newSession, setAuthenticator, setMailboxFolder, urlFromEndpoint |
Methods inherited from class org.mule.providers.AbstractConnector |
checkDisposed, connect, destroyReceiver, disconnect, dispatch, dispose, disposeDispatchers, disposeReceivers, disposeWorkManagers, exceptionThrown, fireNotification, getConnectEventId, getConnectionDescription, getConnectionStrategy, getDefaultInboundTransformer, getDefaultOutboundTransformer, getDefaultResponseTransformer, getDispatcherFactory, getDispatcherThreadingProfile, getDispatcherWorkManager, getExceptionListener, getMaxDispatchersActive, getMessageAdapter, getName, getNumberOfConcurrentTransactedReceivers, getOutputStream, getReceiver, getReceiverKey, getReceivers, getReceivers, getReceiverThreadingProfile, getReceiverWorkManager, getReplyToHandler, getScheduler, getServiceDescriptor, getServiceOverrides, getSessionHandler, getStreamMessageAdapter, getSupportedProtocols, handleException, handleWorkException, initFromServiceDescriptor, initialise, initialiseFromUrl, isConnected, isCreateMultipleTransactedReceivers, isDisposed, isDisposing, isEnableMessageEvents, isRemoteSyncEnabled, isStarted, lookupReceiver, receive, receive, registerListener, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, send, setConnectionStrategy, setCreateMultipleTransactedReceivers, setDefaultInboundTransformer, setDefaultOutboundTransformer, setDefaultResponseTransformer, setDispatcherFactory, setDispatcherThreadingProfile, setEnableMessageEvents, setExceptionListener, setMaxDispatchersActive, setName, setNumberOfConcurrentTransactedReceivers, setReceiverThreadingProfile, setServiceOverrides, setSessionHandler, setSupportedProtocols, startConnector, stopConnector, supportsProtocol, toString, unregisterListener, unregisterSupportedProtocol, workAccepted, workCompleted, workRejected, workStarted |
AbstractTlsRetrieveMailConnector
protected AbstractTlsRetrieveMailConnector(int defaultPort,
String namespace,
Class defaultSocketFactory)
doInitialise
protected void doInitialise()
throws InitialisationException
- Overrides:
doInitialise
in class AbstractMailConnector
- Throws:
InitialisationException
extendPropertiesForSession
protected void extendPropertiesForSession(Properties global,
Properties local,
URLName url)
- Description copied from class:
AbstractMailConnector
- Subclasses should extend this to add further properties.
Synchronization is managed outside this call (so no need to synchronize further on properties)
- Overrides:
extendPropertiesForSession
in class AbstractMailConnector
- Parameters:
global
- system propertieslocal
- local properties (specific to one session)url
- the endpoint url
getSocketFactory
public String getSocketFactory()
setSocketFactory
public void setSocketFactory(String sslSocketFactory)
getSocketFactoryFallback
public String getSocketFactoryFallback()
setSocketFactoryFallback
public void setSocketFactoryFallback(String socketFactoryFallback)
getTrustStore
public String getTrustStore()
- Specified by:
getTrustStore
in interface TlsIndirectTrustStore
- Returns:
- The location (resolved relative to the current classpath and file system, if possible)
of the keystore that contains public certificates of trusted servers.
getTrustStorePassword
public String getTrustStorePassword()
- Specified by:
getTrustStorePassword
in interface TlsIndirectTrustStore
- Returns:
- The password used to protected the trust store defined in
TlsIndirectTrustStore.getTrustStore()
setTrustStore
public void setTrustStore(String trustStore)
throws IOException
- Specified by:
setTrustStore
in interface TlsIndirectTrustStore
- Parameters:
trustStore
- The location of the keystore that contains public certificates of trusted servers.
- Throws:
IOException
- If the location cannot be resolved via the file system or classpath
setTrustStorePassword
public void setTrustStorePassword(String trustStorePassword)
- Specified by:
setTrustStorePassword
in interface TlsIndirectTrustStore
- Parameters:
trustStorePassword
- The password used to protected the trust store defined in
TlsIndirectTrustStore.setTrustStore(String)
getClientKeyStore
public String getClientKeyStore()
- Specified by:
getClientKeyStore
in interface TlsIndirectKeyStore
- Returns:
- The location (resolved relative to the current classpath and file system, if possible)
of the keystore that contains public certificates and private keys for identification.
getClientKeyStorePassword
public String getClientKeyStorePassword()
- Specified by:
getClientKeyStorePassword
in interface TlsIndirectKeyStore
- Returns:
- The password used to protect the keystore itself
getClientKeyStoreType
public String getClientKeyStoreType()
- Specified by:
getClientKeyStoreType
in interface TlsIndirectKeyStore
setClientKeyStore
public void setClientKeyStore(String name)
throws IOException
- Specified by:
setClientKeyStore
in interface TlsIndirectKeyStore
- Parameters:
name
- The location of the keystore that contains public certificates and private keys
for identification.
- Throws:
IOException
- If the location cannot be resolved via the file system or classpath
setClientKeyStorePassword
public void setClientKeyStorePassword(String clientKeyStorePassword)
- Specified by:
setClientKeyStorePassword
in interface TlsIndirectKeyStore
setClientKeyStoreType
public void setClientKeyStoreType(String clientKeyStoreType)
- Specified by:
setClientKeyStoreType
in interface TlsIndirectKeyStore
- Returns:
- The type of keystore used in
#getKeyStore()
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.