1 17 18 package org.apache.james.imapserver.commands; 19 20 21 import org.apache.james.imapserver.ImapRequest; 22 import org.apache.james.imapserver.ImapSession; 23 import org.apache.james.imapserver.ImapSessionState; 24 25 import java.util.List ; 26 27 class NoopCommand extends CommandTemplate 28 { 29 public NoopCommand() 30 { 31 this.commandName = "NOOP"; 32 } 33 34 public boolean doProcess( ImapRequest request, ImapSession session, List argValues ) 35 { 36 if ( session.getState() == ImapSessionState.SELECTED ) { 37 session.checkSize(); 38 session.checkExpunge(); 39 } 40 session.okResponse( request.getCommand() ); 42 logCommand( request, session ); 43 return true; 44 } 45 } 46 | Popular Tags |