Class MailboxFolderReader
java.lang.Object
ch.tocco.nice2.messaging.mail.impl.MailboxFolderReader
- All Implemented Interfaces:
MailboxReader
Implementation of
MailboxReader
that reads all messages of one specific folder.-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.messaging.mail.api.MailboxReader
MailboxReader.Context<T>
-
Constructor Summary
ConstructorDescriptionMailboxFolderReader
(org.slf4j.Logger log, jakarta.mail.Folder folder, MailboxReaderFactory.Mode mode) -
Method Summary
Modifier and TypeMethodDescription<T> T
readMessages
(MailboxReaderHandler<T> handler) <T> void
readMessages
(MailboxReaderHandler<T> handler, MailReaderUtil.Context<T> context) <T> T
readMessages
(jakarta.mail.search.SearchTerm searchTerm, MailboxReaderHandler<T> handler) <T> void
readMessages
(jakarta.mail.search.SearchTerm searchTerm, MailboxReaderHandler<T> handler, MailReaderUtil.Context<T> context)
-
Constructor Details
-
MailboxFolderReader
public MailboxFolderReader(org.slf4j.Logger log, jakarta.mail.Folder folder, MailboxReaderFactory.Mode mode)
-
-
Method Details
-
readMessages
- Specified by:
readMessages
in interfaceMailboxReader
- Throws:
MailException
-
readMessages
public <T> void readMessages(MailboxReaderHandler<T> handler, MailReaderUtil.Context<T> context) throws MailException - Throws:
MailException
-
readMessages
public <T> T readMessages(jakarta.mail.search.SearchTerm searchTerm, MailboxReaderHandler<T> handler) throws MailException - Specified by:
readMessages
in interfaceMailboxReader
- Throws:
MailException
-
readMessages
public <T> void readMessages(jakarta.mail.search.SearchTerm searchTerm, MailboxReaderHandler<T> handler, MailReaderUtil.Context<T> context) throws MailException - Throws:
MailException
-