org.abstracthorizon.mercury.imap.cmd
Class Copy

java.lang.Object
  extended by org.abstracthorizon.mercury.imap.cmd.IMAPCommand
      extended by org.abstracthorizon.mercury.imap.cmd.UIDCommand
          extended by org.abstracthorizon.mercury.imap.cmd.Copy
All Implemented Interfaces:
org.abstracthorizon.danube.connection.ConnectionHandler, MessageProcessor

public class Copy
extends UIDCommand

Copy IMAP Command

Author:
Daniel Sendula

Field Summary
static org.slf4j.Logger logger
          Logger
protected  List<javax.mail.internet.MimeMessage> toProcess
          List of message to be processed
 
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
Copy(String mnemonic)
          Constructor
 
Method Summary
protected  void execute(IMAPSession session)
          Executes the command
 void process(IMAPSession session, javax.mail.internet.MimeMessage m)
          Processes messages
 
Methods inherited from class org.abstracthorizon.mercury.imap.cmd.UIDCommand
setAsUID
 
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

logger

public static org.slf4j.Logger logger
Logger


toProcess

protected List<javax.mail.internet.MimeMessage> toProcess
List of message to be processed

Constructor Detail

Copy

public Copy(String mnemonic)
Constructor

Parameters:
mnemonic - mnemonic
Method Detail

execute

protected void execute(IMAPSession session)
                throws ParserException,
                       javax.mail.MessagingException,
                       CommandException,
                       IOException
Executes the command

Overrides:
execute in class IMAPCommand
Parameters:
session -
Throws:
ParserException
javax.mail.MessagingException
CommandException
IOException

process

public void process(IMAPSession session,
                    javax.mail.internet.MimeMessage m)
             throws javax.mail.MessagingException
Processes messages

Specified by:
process in interface MessageProcessor
Specified by:
process in class UIDCommand
Parameters:
session - session
m - mime message
Throws:
javax.mail.MessagingException


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