|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.abstracthorizon.mercury.imap.cmd.IMAPCommand
org.abstracthorizon.mercury.imap.cmd.UIDCommand
org.abstracthorizon.mercury.imap.cmd.Search
public class Search
Search IMAP command
Nested Class Summary | |
---|---|
class |
Search.AllTerm
|
class |
Search.NoneTerm
|
class |
Search.TextTerm
|
class |
Search.UIDTerm
|
Field Summary | |
---|---|
static javax.mail.Flags |
ANSWERED
|
protected boolean |
asuid
Runs as UID |
protected StringBuffer |
charset
Charset |
static javax.mail.Flags |
DELETED
|
static javax.mail.Flags |
DRAFT
|
static javax.mail.Flags |
FLAGGED
|
protected static org.slf4j.Logger |
logger
Logger |
static javax.mail.Flags |
RECENT
|
static javax.mail.Flags |
SEEN
|
Fields inherited from class org.abstracthorizon.mercury.imap.cmd.IMAPCommand |
---|
ALWAYS_SEND_UNILATERAL_DATA, ALWAYS_SUPRESS_UNILATERAL_DATA, mnemonic, SEND_WHEN_HAVE_NEW, unilateral |
Constructor Summary | |
---|---|
Search(String mnemonic)
Constructor |
Method Summary | |
---|---|
protected void |
execute(IMAPSession session)
Executes the command |
void |
process(IMAPSession session,
javax.mail.internet.MimeMessage m)
Template method to be implementd to process each individial message |
javax.mail.search.SearchTerm |
search(IMAPScanner scanner)
|
protected javax.mail.search.SearchTerm |
searchKey(IMAPScanner scanner)
|
void |
setAsUID()
Marks that command runs as UID command |
Methods inherited from class org.abstracthorizon.mercury.imap.cmd.IMAPCommand |
---|
checkEOL, getMnemonic, handleConnection, sendOK |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final javax.mail.Flags ANSWERED
public static final javax.mail.Flags DELETED
public static final javax.mail.Flags DRAFT
public static final javax.mail.Flags SEEN
public static final javax.mail.Flags RECENT
public static final javax.mail.Flags FLAGGED
protected boolean asuid
protected StringBuffer charset
protected static final org.slf4j.Logger logger
Constructor Detail |
---|
public Search(String mnemonic)
mnemonic
- mnemonicMethod Detail |
---|
public void setAsUID()
setAsUID
in class UIDCommand
protected void execute(IMAPSession session) throws ParserException, javax.mail.MessagingException, CommandException, IOException
execute
in class IMAPCommand
session
-
ParserException
javax.mail.MessagingException
CommandException
IOException
public void process(IMAPSession session, javax.mail.internet.MimeMessage m) throws javax.mail.MessagingException
UIDCommand
process
in interface MessageProcessor
process
in class UIDCommand
session
- sessionm
- message
javax.mail.MessagingException
public javax.mail.search.SearchTerm search(IMAPScanner scanner) throws IOException, ParserException, javax.mail.MessagingException
IOException
ParserException
javax.mail.MessagingException
protected javax.mail.search.SearchTerm searchKey(IMAPScanner scanner) throws IOException, ParserException, javax.mail.MessagingException
IOException
ParserException
javax.mail.MessagingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |