org.abstracthorizon.mercury.imap.cmd
Class UIDCommand
java.lang.Object
org.abstracthorizon.mercury.imap.cmd.IMAPCommand
org.abstracthorizon.mercury.imap.cmd.UIDCommand
- All Implemented Interfaces:
- org.abstracthorizon.danube.connection.ConnectionHandler, MessageProcessor
- Direct Known Subclasses:
- Copy, Fetch, Search, Store
public abstract class UIDCommand
- extends IMAPCommand
- implements MessageProcessor
A super class for all commands that can be invoked by UID prefix
(Copy, Fetch, Search and Store)
- Author:
- Daniel Sendula
Field Summary |
protected boolean |
asuid
Run as UID command |
Method Summary |
abstract void |
process(IMAPSession session,
javax.mail.internet.MimeMessage m)
Template method to be implementd to process each individial message |
void |
setAsUID()
Marks to run command as UID command |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
asuid
protected boolean asuid
- Run as UID command
UIDCommand
public UIDCommand(String mnemonic)
- Constructor
- Parameters:
mnemonic
- mnemonic
setAsUID
public void setAsUID()
- Marks to run command as UID command
process
public abstract void process(IMAPSession session,
javax.mail.internet.MimeMessage m)
throws IOException,
javax.mail.MessagingException
- Template method to be implementd to process each individial message
- Specified by:
process
in interface MessageProcessor
- Parameters:
session
- sessionm
- message
- Throws:
IOException
javax.mail.MessagingException
Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.