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
SearchExceptionIOExceptionprotected Argument or(OrTerm term, String charset) throws SearchException, IOException
SearchExceptionIOExceptionprotected Argument not(NotTerm term, String charset) throws SearchException, IOException
SearchExceptionIOExceptionprotected Argument header(HeaderTerm term, String charset) throws SearchException, IOException
SearchExceptionIOExceptionprotected Argument messageid(MessageIDTerm term, String charset) throws SearchException, IOException
SearchExceptionIOExceptionprotected Argument flag(FlagTerm term) throws SearchException
SearchExceptionprotected Argument from(String address, String charset) throws SearchException, IOException
SearchExceptionIOExceptionprotected Argument recipient(Message.RecipientType type, String address, String charset) throws SearchException, IOException
SearchExceptionIOExceptionprotected Argument subject(SubjectTerm term, String charset) throws SearchException, IOException
SearchExceptionIOExceptionprotected Argument body(BodyTerm term, String charset) throws SearchException, IOException
SearchExceptionIOExceptionprotected Argument size(SizeTerm term) throws SearchException
SearchExceptionprotected Argument sentdate(DateTerm term) throws SearchException
SearchExceptionprotected Argument receiveddate(DateTerm term) throws SearchException
SearchExceptionprotected 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 © 2017 JBoss by Red Hat. All rights reserved.