@XmlHints(allowTopLevelDefinition=true) @Alias(value="imap-matcher") public class IMAPEmailPredicateBuilder extends BaseEmailPredicateBuilder
Predicate which verifies that a IMAPEmailAttributes instance is compliant with a number of criteria.
This builder is stateful and not thread-safe. A new instance should be use per each desired Predicate.
This builder adds the capability to build a predicate that filters by the EmailFlags contained in
an email returned from an IMAP mailbox
The class is also given the "imap-matcher" alias to make it DSL/XML friendly.
| Constructor and Description |
|---|
IMAPEmailPredicateBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getAnswered() |
protected Predicate<? extends BaseEmailAttributes> |
getBasePredicate() |
Boolean |
getDeleted() |
Boolean |
getRecent() |
Boolean |
getSeen() |
IMAPEmailPredicateBuilder |
setAnswered(Boolean answered) |
IMAPEmailPredicateBuilder |
setDeleted(Boolean deleted) |
IMAPEmailPredicateBuilder |
setRecent(Boolean recent) |
IMAPEmailPredicateBuilder |
setSeen(Boolean seen) |
build, getFromRegex, getReceivedSince, getReceivedUntil, getSentSince, getSentUntil, getSubjectRegex, setFromRegex, setReceivedSince, setReceivedUntil, setSentSince, setSentUntil, setSubjectRegexprotected Predicate<? extends BaseEmailAttributes> getBasePredicate()
getBasePredicate in class BaseEmailPredicateBuilderpublic Boolean getSeen()
public Boolean getAnswered()
public Boolean getDeleted()
public Boolean getRecent()
public IMAPEmailPredicateBuilder setAnswered(Boolean answered)
public IMAPEmailPredicateBuilder setDeleted(Boolean deleted)
public IMAPEmailPredicateBuilder setRecent(Boolean recent)
public IMAPEmailPredicateBuilder setSeen(Boolean seen)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.