Package com.sun.mail.gimap.protocol
Class GmailSearchSequence
- java.lang.Object
-
- com.sun.mail.imap.protocol.SearchSequence
-
- com.sun.mail.gimap.protocol.GmailSearchSequence
-
public class GmailSearchSequence extends SearchSequence
Support Gmail-specific search extensions.- Since:
- JavaMail 1.4.6
- Author:
- Bill Shannon
-
-
Field Summary
-
Fields inherited from class com.sun.mail.imap.protocol.SearchSequence
cal
-
-
Constructor Summary
Constructors Constructor Description GmailSearchSequence(IMAPProtocol p)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArgumentgenerateSequence(SearchTerm term, java.lang.String charset)Generate the IMAP search sequence for the given search expression.protected ArgumentgmailMsgidSearch(GmailMsgIdTerm term)protected ArgumentgmailRawSearch(GmailRawSearchTerm term, java.lang.String charset)protected ArgumentgmailThridSearch(GmailThrIdTerm term)
-
-
-
Constructor Detail
-
GmailSearchSequence
public GmailSearchSequence(IMAPProtocol p)
-
-
Method Detail
-
generateSequence
public Argument generateSequence(SearchTerm term, java.lang.String charset) throws SearchException, java.io.IOException
Description copied from class:SearchSequenceGenerate the IMAP search sequence for the given search expression.- Overrides:
generateSequencein classSearchSequence- Parameters:
term- the search termcharset- charset for the search- Returns:
- the SEARCH Argument
- Throws:
SearchException- for failuresjava.io.IOException- for I/O errors
-
gmailMsgidSearch
protected Argument gmailMsgidSearch(GmailMsgIdTerm term) throws java.io.IOException
- Throws:
java.io.IOException
-
gmailThridSearch
protected Argument gmailThridSearch(GmailThrIdTerm term) throws java.io.IOException
- Throws:
java.io.IOException
-
gmailRawSearch
protected Argument gmailRawSearch(GmailRawSearchTerm term, java.lang.String charset) throws java.io.IOException
- Throws:
java.io.IOException
-
-