|
||||||||||
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.Fetch
public class Fetch
Fetch IMAP command
Field Summary | |
---|---|
protected List<Object> |
attrs
Attributes |
protected static SimpleDateFormat |
internalDate
Internal date |
protected static org.slf4j.Logger |
logger
Logger |
protected boolean |
tagSent
Tag |
Fields inherited from class org.abstracthorizon.mercury.imap.cmd.UIDCommand |
---|
asuid |
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 | |
---|---|
Fetch(String mnemonic)
Constructor |
Method Summary | |
---|---|
protected void |
execute(IMAPSession session)
Executes the command |
static boolean |
fetch_att(IMAPScanner scanner,
List<Object> atts)
Parses fetch attributes |
void |
fetch(IMAPSession session)
Executes the command |
void |
process(IMAPSession session,
javax.mail.internet.MimeMessage m)
Processes message |
void |
setAsUID()
Defines as UID function |
protected boolean |
spaceSeparator(boolean flag,
FetchResponse response)
Adds space if not first |
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 |
---|
protected static final org.slf4j.Logger logger
protected static SimpleDateFormat internalDate
protected boolean tagSent
protected List<Object> attrs
Constructor Detail |
---|
public Fetch(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 fetch(IMAPSession session) throws IOException, ParserException, javax.mail.MessagingException
session
-
ParserException
javax.mail.MessagingException
CommandException
IOException
public static boolean fetch_att(IMAPScanner scanner, List<Object> atts) throws IOException, ParserException
scanner
- scanneratts
- attributes
true
if parsing was correct
IOException
ParserException
public void process(IMAPSession session, javax.mail.internet.MimeMessage m) throws IOException, javax.mail.MessagingException
process
in interface MessageProcessor
process
in class UIDCommand
session
- sessionm
- mime message
javax.mail.MessagingException
IOException
protected boolean spaceSeparator(boolean flag, FetchResponse response)
flag
- flagresponse
- fetch response
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |