org.abstracthorizon.mercury.imap.cmd
Class Store

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.Store
All Implemented Interfaces:
org.abstracthorizon.danube.connection.ConnectionHandler, MessageProcessor

public class Store
extends UIDCommand

Store IMAP command

Author:
Daniel Sendula

Field Summary
protected  Flags flags
          Flags
protected static org.slf4j.Logger logger
          Logger
 
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
Store(String mnemonic)
          Constructor
 
Method Summary
protected  void execute(IMAPSession session)
          Executes the command
 void process(IMAPSession session, javax.mail.internet.MimeMessage m)
          Processes the message
static boolean store_atts(IMAPScanner scanner, Flags flags)
          Scans for store attributes
 
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

protected static final org.slf4j.Logger logger
Logger


flags

protected Flags flags
Flags

Constructor Detail

Store

public Store(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,
                    IOException
Processes the message

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

store_atts

public static boolean store_atts(IMAPScanner scanner,
                                 Flags flags)
                          throws ParserException,
                                 IOException
Scans for store attributes

Parameters:
scanner - scanner
flags - flags
Returns:
true if processing is successful
Throws:
ParserException
IOException


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