org.mailster.pop3.commands
Class ImplCommand

java.lang.Object
  extended by org.mailster.pop3.commands.Pop3Command
      extended by org.mailster.pop3.commands.ImplCommand
All Implemented Interfaces:
CapabilitiesInterface

public class ImplCommand
extends Pop3Command
implements CapabilitiesInterface

---
Mailster (C) 2007-2009 De Oliveira Edouard

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

See  Mailster Web Site
---

ImplCommand.java - The POP3 IMPL command (see RFC 2449).

Version:
$Revision: 1.5 $, $Date: 2008/12/06 13:57:16 $
Author:
Edouard De Oliveira

Field Summary
static java.lang.String IMPLEMENTATION_STRING
           
 
Constructor Summary
ImplCommand()
           
 
Method Summary
 void execute(AbstractPop3Handler handler, AbstractPop3Connection conn, java.lang.String cmd)
          Executes the command.
 java.lang.String getCapability()
          Returns the capability string reported by the CAPA command.
 boolean isValidForState(Pop3State state)
          Checks if command is valid for the specified POP3 state.
 
Methods inherited from class org.mailster.pop3.commands.Pop3Command
tryLockingMailbox
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMPLEMENTATION_STRING

public static final java.lang.String IMPLEMENTATION_STRING
See Also:
Constant Field Values
Constructor Detail

ImplCommand

public ImplCommand()
Method Detail

isValidForState

public boolean isValidForState(Pop3State state)
Description copied from class: Pop3Command
Checks if command is valid for the specified POP3 state.

Specified by:
isValidForState in class Pop3Command
Parameters:
state - the POP3 state
Returns:
true, if is valid for state

execute

public void execute(AbstractPop3Handler handler,
                    AbstractPop3Connection conn,
                    java.lang.String cmd)
Description copied from class: Pop3Command
Executes the command.

Specified by:
execute in class Pop3Command
Parameters:
handler - a pop3 handler
conn - a pop3 connection
cmd - the command line sent by the client

getCapability

public java.lang.String getCapability()
Description copied from interface: CapabilitiesInterface
Returns the capability string reported by the CAPA command.

Specified by:
getCapability in interface CapabilitiesInterface
Returns:
the capability string