org.abstracthorizon.mercury.imap.cmd
Class UIDCommand

java.lang.Object
  extended by org.abstracthorizon.mercury.imap.cmd.IMAPCommand
      extended by 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
 
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
UIDCommand(String mnemonic)
          Constructor
 
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 org.abstracthorizon.mercury.imap.cmd.IMAPCommand
checkEOL, execute, getMnemonic, handleConnection, sendOK
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

asuid

protected boolean asuid
Run as UID command

Constructor Detail

UIDCommand

public UIDCommand(String mnemonic)
Constructor

Parameters:
mnemonic - mnemonic
Method Detail

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 - session
m - message
Throws:
IOException
javax.mail.MessagingException


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.