FileDocCategorySizeDatePackage
NoopCmdHandler.javaAPI DocApache James 2.3.11934Fri Jan 12 12:56:26 GMT 2007org.apache.james.smtpserver

NoopCmdHandler

public class NoopCmdHandler extends Object implements CommandHandler
Handles NOOP command

Fields Summary
private static final String
COMMAND_NAME
The name of the command handled by the command handler
Constructors Summary
Methods Summary
public voidonCommand(SMTPSession session)
Handler method called upon receipt of a NOOP command. Just sends back an OK and logs the command.

see
org.apache.james.smtpserver.CommandHandler#onCommand(SMTPSession)


                             
        
        String responseString = "250 "+DSNStatus.getStatus(DSNStatus.SUCCESS,DSNStatus.UNDEFINED_STATUS)+" OK";
        session.writeResponse(responseString);