Package com.icegreen.greenmail.imap.commands

Examples of com.icegreen.greenmail.imap.commands.ImapCommand


            return;
        }

        // TODO replace with proper logging
        // System.out.println( "Got <command>: " + commandName );
        ImapCommand command = imapCommands.getCommand(commandName);
        if (command == null) {
            response.commandError("Invalid command.");
            return;
        }

        if (!command.validForState(session.getState())) {
            response.commandFailed(command, "Command not valid in this state");
            return;
        }

        command.process(request, response, session);
    }
View Full Code Here

TOP

Related Classes of com.icegreen.greenmail.imap.commands.ImapCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.