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:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.FactoryBean<MailReceivingMessageSource>
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.Lifecycle
,org.springframework.context.Phased
,org.springframework.context.SmartLifecycle
,org.springframework.integration.dsl.ComponentsRegistration
public class ImapMailInboundChannelAdapterSpec extends MailInboundChannelAdapterSpec<ImapMailInboundChannelAdapterSpec,ImapMailReceiver>
A
MailInboundChannelAdapterSpec
for IMAP.- Since:
- 5.0
-
Field Summary
Fields inherited from class org.springframework.integration.mail.dsl.MailInboundChannelAdapterSpec
externalReceiver, receiver
-
Constructor Summary
Constructors Modifier Constructor Description protected
ImapMailInboundChannelAdapterSpec()
protected
ImapMailInboundChannelAdapterSpec(java.lang.String url)
protected
ImapMailInboundChannelAdapterSpec(ImapMailReceiver imapMailReceiver)
-
Method Summary
Modifier and Type Method Description ImapMailInboundChannelAdapterSpec
searchTermStrategy(SearchTermStrategy searchTermStrategy)
ASearchTermStrategy
to use.ImapMailInboundChannelAdapterSpec
shouldMarkMessagesAsRead(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, userFlag
Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
-
Constructor Details
-
ImapMailInboundChannelAdapterSpec
protected ImapMailInboundChannelAdapterSpec() -
ImapMailInboundChannelAdapterSpec
-
ImapMailInboundChannelAdapterSpec
protected ImapMailInboundChannelAdapterSpec(java.lang.String url)
-
-
Method Details
-
searchTermStrategy
ASearchTermStrategy
to 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)
-