org.mailster.pop3.commands
Class Pop3CommandRegistry

java.lang.Object
  extended by org.mailster.pop3.commands.Pop3CommandRegistry

public class Pop3CommandRegistry
extends java.lang.Object

---
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
---

Pop3CommandRegistry.java - The POP3 command registry maps a command line to the command class that actually handles the command.

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

Field Summary
private static java.util.Map<java.lang.String,Pop3Command> commands
           
private static java.lang.Object[][] COMMANDS
           
 
Constructor Summary
Pop3CommandRegistry()
           
 
Method Summary
static Pop3Command getCommand(java.lang.String name)
           
protected static java.util.List<java.lang.String> listCapabilities()
           
private static void load()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commands

private static final java.util.Map<java.lang.String,Pop3Command> commands

COMMANDS

private static final java.lang.Object[][] COMMANDS
Constructor Detail

Pop3CommandRegistry

public Pop3CommandRegistry()
Method Detail

load

private static void load()
                  throws java.lang.Exception
Throws:
java.lang.Exception

listCapabilities

protected static java.util.List<java.lang.String> listCapabilities()

getCommand

public static Pop3Command getCommand(java.lang.String name)