public class SearchSequence extends Object
Constructor and Description |
---|
SearchSequence() |
Modifier and Type | Method and Description |
---|---|
protected Argument |
and(AndTerm term,
String charset) |
protected Argument |
body(BodyTerm term,
String charset) |
protected Argument |
flag(FlagTerm term) |
protected Argument |
from(String address,
String charset) |
Argument |
generateSequence(SearchTerm term,
String charset)
Generate the IMAP search sequence for the given search expression.
|
protected Argument |
header(HeaderTerm term,
String charset) |
static boolean |
isAscii(SearchTerm term)
Check if the "text" terms in the given SearchTerm contain
non US-ASCII characters.
|
static boolean |
isAscii(SearchTerm[] terms)
Check if any of the "text" terms in the given SearchTerms contain
non US-ASCII characters.
|
static boolean |
isAscii(String s)
Does this string contain only ASCII characters?
|
protected Argument |
messageid(MessageIDTerm term,
String charset) |
protected Argument |
modifiedSince(ModifiedSinceTerm term)
Generate argument for ModifiedSinceTerm.
|
protected Argument |
not(NotTerm term,
String charset) |
protected Argument |
older(OlderTerm term)
Generate argument for OlderTerm.
|
protected Argument |
or(OrTerm term,
String charset) |
protected Argument |
receiveddate(DateTerm term) |
protected Argument |
recipient(Message.RecipientType type,
String address,
String charset) |
protected Argument |
sentdate(DateTerm term) |
protected Argument |
size(SizeTerm term) |
protected Argument |
subject(SubjectTerm term,
String charset) |
protected String |
toIMAPDate(Date date) |
protected Argument |
younger(YoungerTerm term)
Generate argument for YoungerTerm.
|
protected Calendar cal
public Argument generateSequence(SearchTerm term, String charset) throws SearchException, IOException
term
- the search termcharset
- charset for the searchSearchException
- for failuresIOException
- for I/O errorspublic static boolean isAscii(SearchTerm term)
term
- the search termpublic static boolean isAscii(SearchTerm[] terms)
terms
- the search termspublic static boolean isAscii(String s)
s
- the stringprotected Argument and(AndTerm term, String charset) throws SearchException, IOException
SearchException
IOException
protected Argument or(OrTerm term, String charset) throws SearchException, IOException
SearchException
IOException
protected Argument not(NotTerm term, String charset) throws SearchException, IOException
SearchException
IOException
protected Argument header(HeaderTerm term, String charset) throws SearchException, IOException
SearchException
IOException
protected Argument messageid(MessageIDTerm term, String charset) throws SearchException, IOException
SearchException
IOException
protected Argument flag(FlagTerm term) throws SearchException
SearchException
protected Argument from(String address, String charset) throws SearchException, IOException
SearchException
IOException
protected Argument recipient(Message.RecipientType type, String address, String charset) throws SearchException, IOException
SearchException
IOException
protected Argument subject(SubjectTerm term, String charset) throws SearchException, IOException
SearchException
IOException
protected Argument body(BodyTerm term, String charset) throws SearchException, IOException
SearchException
IOException
protected Argument size(SizeTerm term) throws SearchException
SearchException
protected Argument sentdate(DateTerm term) throws SearchException
SearchException
protected Argument receiveddate(DateTerm term) throws SearchException
SearchException
protected Argument older(OlderTerm term) throws SearchException
term
- the search termSearchException
- for failuresprotected Argument younger(YoungerTerm term) throws SearchException
term
- the search termSearchException
- for failuresprotected Argument modifiedSince(ModifiedSinceTerm term) throws SearchException
term
- the search termSearchException
- for failuresCopyright © 2016 JBoss by Red Hat. All rights reserved.