org.abstracthorizon.mercury.imap.cmd
Class Bad

java.lang.Object
  extended by org.abstracthorizon.mercury.imap.cmd.IMAPCommand
      extended by org.abstracthorizon.mercury.imap.cmd.Bad
All Implemented Interfaces:
org.abstracthorizon.danube.connection.ConnectionHandler

public class Bad
extends IMAPCommand

Artificial command representing unknown command

Author:
Daniel Sendula

Field Summary
protected  String error
          Error message
 
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
Bad()
          Constructor
 
Method Summary
 void execute(IMAPSession session)
          Executes the command
 void setErrorString(String error)
          Sets error message
 
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

error

protected String error
Error message

Constructor Detail

Bad

public Bad()
Constructor

Method Detail

setErrorString

public void setErrorString(String error)
Sets error message

Parameters:
error - error message

execute

public void execute(IMAPSession session)
             throws IOException
Executes the command

Overrides:
execute in class IMAPCommand
Parameters:
session -
Throws:
IOException


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