public abstract class AbstractImapCommandParser extends Object implements MessagingImapCommandParser
Note:
| Constructor and Description |
|---|
AbstractImapCommandParser(ImapCommand command) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract ImapMessage |
decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session)
Parses a request into a command message for later processing.
|
ImapCommand |
getCommand() |
StatusResponseFactory |
getStatusResponseFactory() |
ImapMessage |
parse(ImapRequestLineReader request,
String tag,
ImapSession session)
Parses a request into a command message for later processing.
|
void |
setStatusResponseFactory(StatusResponseFactory statusResponseFactory) |
public AbstractImapCommandParser(ImapCommand command)
public ImapCommand getCommand()
public final StatusResponseFactory getStatusResponseFactory()
getStatusResponseFactory in interface MessagingImapCommandParserMessagingImapCommandParser.getStatusResponseFactory()public final void setStatusResponseFactory(StatusResponseFactory statusResponseFactory)
setStatusResponseFactory in interface MessagingImapCommandParser(org.apache.james.imap.api.message.response.StatusResponseFactory)public final ImapMessage parse(ImapRequestLineReader request, String tag, ImapSession session)
parse in interface ImapCommandParserrequest - ImapRequestLineReader, not nulltag - not nullsession - the ImapSessionImapCommandMessage, not nullprotected abstract ImapMessage decode(ImapCommand command, ImapRequestLineReader request, String tag, ImapSession session) throws DecodingException
command - ImapCommand to be parsed, not nullrequest - ImapRequestLineReader, not nulltag - command tag, not nullsession - imap sessionImapCommandMessage, not nullDecodingException - if the request cannot be parsedCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.