org.abstracthorizon.mercury.imap.cmd
Class Select

java.lang.Object
  extended by org.abstracthorizon.mercury.imap.cmd.IMAPCommand
      extended by org.abstracthorizon.mercury.imap.cmd.Select
All Implemented Interfaces:
org.abstracthorizon.danube.connection.ConnectionHandler
Direct Known Subclasses:
Examine

public class Select
extends IMAPCommand

Select IMAP command

Author:
Daniel Sendula

Field Summary
static javax.mail.Flags flags
          Flags
 
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
Select(String mnemonic)
          Constructor
 
Method Summary
protected  void execute(IMAPSession session)
          Executes the command
protected  void executeImpl(IMAPSession session, boolean readonly)
          Executes the command
 
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

flags

public static final javax.mail.Flags flags
Flags

Constructor Detail

Select

public Select(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

executeImpl

protected void executeImpl(IMAPSession session,
                           boolean readonly)
                    throws ParserException,
                           javax.mail.MessagingException,
                           IOException
Executes the command

Parameters:
session -
readonly - is select readonly or not
Throws:
ParserException
javax.mail.MessagingException
CommandException
IOException


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