Package com.icegreen.greenmail.imap
Class ImapRequestHandler
- java.lang.Object
-
- com.icegreen.greenmail.imap.ImapRequestHandler
-
public final class ImapRequestHandler extends Object
- Author:
- Darrell DeBoer
-
-
Constructor Summary
Constructors Constructor Description ImapRequestHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhandleRequest(InputStream input, OutputStream output, ImapSession session)This method parses commands read off the wire in handleConnection.
-
-
-
Method Detail
-
handleRequest
public boolean handleRequest(InputStream input, OutputStream output, ImapSession session) throws ProtocolException
This method parses commands read off the wire in handleConnection. Actual processing of the command (possibly including additional back and forth communication with the client) is delegated to one of a number of command specific handler methods. The primary purpose of this method is to parse the raw command string to determine exactly which handler should be called. It returns true if expecting additional commands, false otherwise.- Parameters:
input- stream containing commandsoutput- stream for responsesession- current IMAP session (state)- Returns:
- whether additional commands are expected.
- Throws:
ProtocolException
-
-