GmailSearchSequence
public class SearchSequence
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected java.util.Calendar |
cal |
Constructor | Description |
---|---|
SearchSequence() |
Deprecated.
|
SearchSequence(IMAPProtocol p) |
Create a SearchSequence for this IMAPProtocol.
|
Modifier and Type | Method | Description |
---|---|---|
protected Argument |
and(AndTerm term,
java.lang.String charset) |
|
protected Argument |
body(BodyTerm term,
java.lang.String charset) |
|
protected Argument |
flag(FlagTerm term) |
|
protected Argument |
from(java.lang.String address,
java.lang.String charset) |
|
Argument |
generateSequence(SearchTerm term,
java.lang.String charset) |
Generate the IMAP search sequence for the given search expression.
|
protected Argument |
header(HeaderTerm term,
java.lang.String charset) |
|
static boolean |
isAscii(java.lang.String s) |
Does this string contain only ASCII characters?
|
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.
|
protected Argument |
messageid(MessageIDTerm term,
java.lang.String charset) |
|
protected Argument |
modifiedSince(ModifiedSinceTerm term) |
Generate argument for ModifiedSinceTerm.
|
protected Argument |
not(NotTerm term,
java.lang.String charset) |
|
protected Argument |
older(OlderTerm term) |
Generate argument for OlderTerm.
|
protected Argument |
or(OrTerm term,
java.lang.String charset) |
|
protected Argument |
receiveddate(DateTerm term) |
|
protected Argument |
recipient(Message.RecipientType type,
java.lang.String address,
java.lang.String charset) |
|
protected Argument |
sentdate(DateTerm term) |
|
protected Argument |
size(SizeTerm term) |
|
protected Argument |
subject(SubjectTerm term,
java.lang.String charset) |
|
protected java.lang.String |
toIMAPDate(java.util.Date date) |
|
protected Argument |
younger(YoungerTerm term) |
Generate argument for YoungerTerm.
|
public SearchSequence(IMAPProtocol p)
p
- the IMAPProtocol object for the server@Deprecated public SearchSequence()
public Argument generateSequence(SearchTerm term, java.lang.String charset) throws SearchException, java.io.IOException
term
- the search termcharset
- charset for the searchSearchException
- for failuresjava.io.IOException
- 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(java.lang.String s)
s
- the stringprotected Argument and(AndTerm term, java.lang.String charset) throws SearchException, java.io.IOException
SearchException
java.io.IOException
protected Argument or(OrTerm term, java.lang.String charset) throws SearchException, java.io.IOException
SearchException
java.io.IOException
protected Argument not(NotTerm term, java.lang.String charset) throws SearchException, java.io.IOException
SearchException
java.io.IOException
protected Argument header(HeaderTerm term, java.lang.String charset) throws SearchException, java.io.IOException
SearchException
java.io.IOException
protected Argument messageid(MessageIDTerm term, java.lang.String charset) throws SearchException, java.io.IOException
SearchException
java.io.IOException
protected Argument flag(FlagTerm term) throws SearchException
SearchException
protected Argument from(java.lang.String address, java.lang.String charset) throws SearchException, java.io.IOException
SearchException
java.io.IOException
protected Argument recipient(Message.RecipientType type, java.lang.String address, java.lang.String charset) throws SearchException, java.io.IOException
SearchException
java.io.IOException
protected Argument subject(SubjectTerm term, java.lang.String charset) throws SearchException, java.io.IOException
SearchException
java.io.IOException
protected Argument body(BodyTerm term, java.lang.String charset) throws SearchException, java.io.IOException
SearchException
java.io.IOException
protected Argument size(SizeTerm term) throws SearchException
SearchException
protected java.lang.String toIMAPDate(java.util.Date date)
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 © 2018 Oracle. All rights reserved.