All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.subethamail.smtp.server.CommandRegistry Maven / Gradle / Ivy

/*
 * Commands.java Created on November 18, 2006, 12:26 PM To change this template,
 * choose Tools | Template Manager and open the template in the editor.
 */

package org.subethamail.smtp.server;

import org.subethamail.smtp.command.AuthCommand;
import org.subethamail.smtp.command.DataCommand;
import org.subethamail.smtp.command.EhloCommand;
import org.subethamail.smtp.command.HelloCommand;
import org.subethamail.smtp.command.HelpCommand;
import org.subethamail.smtp.command.MailCommand;
import org.subethamail.smtp.command.NoopCommand;
import org.subethamail.smtp.command.QuitCommand;
import org.subethamail.smtp.command.ReceiptCommand;
import org.subethamail.smtp.command.ResetCommand;
import org.subethamail.smtp.command.StartTLSCommand;
import org.subethamail.smtp.command.VerifyCommand;

/**
 * Enumerates all the Commands made available in this release.
 * 
 * @author Marco Trevisan 
 */
public enum CommandRegistry
{
	AUTH(new AuthCommand()), 
	DATA(new DataCommand()), 
	EHLO(new EhloCommand()), 
	HELO(new HelloCommand()), 
	HELP(new HelpCommand()), 
	MAIL(new MailCommand()), 
	NOOP(new NoopCommand()), 
	QUIT(new QuitCommand()), 
	RCPT(new ReceiptCommand()), 
	RSET(new ResetCommand()), 
	STARTTLS(new StartTLSCommand()), 
	VRFY(new VerifyCommand());

	private Command command;

	private CommandRegistry(Command cmd)
	{
		this.command = cmd;
	}

	public Command getCommand()
	{
		return this.command;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy