Class ImapMailInboundChannelAdapterSpec
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,H>
org.springframework.integration.dsl.MessageSourceSpec<S,MailReceivingMessageSource>
org.springframework.integration.mail.dsl.MailInboundChannelAdapterSpec<ImapMailInboundChannelAdapterSpec,ImapMailReceiver>
org.springframework.integration.mail.dsl.ImapMailInboundChannelAdapterSpec
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<MailReceivingMessageSource>,InitializingBean,Lifecycle,Phased,SmartLifecycle,ComponentsRegistration
public class ImapMailInboundChannelAdapterSpec extends MailInboundChannelAdapterSpec<ImapMailInboundChannelAdapterSpec,ImapMailReceiver>
A
MailInboundChannelAdapterSpec for IMAP.- Since:
- 5.0
- Author:
- Gary Russell, Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.mail.dsl.MailInboundChannelAdapterSpec
externalReceiver, receiverFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target -
Constructor Summary
Constructors Modifier Constructor Description protectedImapMailInboundChannelAdapterSpec()protectedImapMailInboundChannelAdapterSpec(String url)protectedImapMailInboundChannelAdapterSpec(ImapMailReceiver imapMailReceiver) -
Method Summary
Modifier and Type Method Description ImapMailInboundChannelAdapterSpecsearchTermStrategy(SearchTermStrategy searchTermStrategy)ASearchTermStrategyto use.ImapMailInboundChannelAdapterSpecshouldMarkMessagesAsRead(boolean shouldMarkMessagesAsRead)A flag to determine if message should be marked as read.Methods inherited from class org.springframework.integration.mail.dsl.MailInboundChannelAdapterSpec
assertReceiver, autoCloseFolder, doGet, embeddedPartsAsBytes, getComponentsToRegister, headerMapper, javaMailAuthenticator, javaMailProperties, javaMailProperties, maxFetchSize, selector, selectorExpression, selectorExpression, session, shouldDeleteMessages, simpleContent, userFlagMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
ImapMailInboundChannelAdapterSpec
protected ImapMailInboundChannelAdapterSpec() -
ImapMailInboundChannelAdapterSpec
-
ImapMailInboundChannelAdapterSpec
-
-
Method Details
-
searchTermStrategy
ASearchTermStrategyto use.- Parameters:
searchTermStrategy- the searchTermStrategy.- Returns:
- the spec.
- See Also:
ImapMailReceiver.setSearchTermStrategy(SearchTermStrategy)
-
shouldMarkMessagesAsRead
public ImapMailInboundChannelAdapterSpec shouldMarkMessagesAsRead(boolean shouldMarkMessagesAsRead)A flag to determine if message should be marked as read.- Parameters:
shouldMarkMessagesAsRead- the shouldMarkMessagesAsRead.- Returns:
- the spec.
- See Also:
ImapMailReceiver.setShouldMarkMessagesAsRead(Boolean)
-