org.abstracthorizon.mercury.smtp.command
Class EhloCommand

java.lang.Object
  extended by org.abstracthorizon.mercury.smtp.command.SMTPCommand
      extended by org.abstracthorizon.mercury.smtp.command.ResetCommand
          extended by org.abstracthorizon.mercury.smtp.command.EhloCommand
All Implemented Interfaces:
org.abstracthorizon.danube.connection.ConnectionHandler
Direct Known Subclasses:
FilterEhloCommand, QuietFilterEhloCommand

public class EhloCommand
extends ResetCommand

EHLO command

Author:
Daniel Sendula

Constructor Summary
EhloCommand()
          Constructor
 
Method Summary
protected  void execute(SMTPSession connection)
          Executed the command
protected  void processEHLO(SMTPSession connection, String domain)
          Processes EHLO command
protected  void readExtraParameters(SMTPSession connection, SMTPScanner scanner)
          Obtains extra parameters.
 
Methods inherited from class org.abstracthorizon.mercury.smtp.command.ResetCommand
resetSession
 
Methods inherited from class org.abstracthorizon.mercury.smtp.command.SMTPCommand
handleConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EhloCommand

public EhloCommand()
Constructor

Method Detail

execute

protected void execute(SMTPSession connection)
                throws CommandException,
                       IOException,
                       ParserException
Executed the command

Overrides:
execute in class ResetCommand
Parameters:
connection - smtp session
Throws:
CommandException
IOException
ParserException

readExtraParameters

protected void readExtraParameters(SMTPSession connection,
                                   SMTPScanner scanner)
                            throws IOException,
                                   ParserException,
                                   CommandException
Obtains extra parameters.

Parameters:
session - SMTP session
scanner - STMP scanner
Throws:
IOException - io exception
ParserException - parsing exception
CommandException - command exception

processEHLO

protected void processEHLO(SMTPSession connection,
                           String domain)
                    throws IOException
Processes EHLO command

Parameters:
connection - SMTP session
Throws:
IOException


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