public class ListCommandParser extends AbstractImapCommandParser
Modifier | Constructor and Description |
---|---|
|
ListCommandParser() |
protected |
ListCommandParser(ImapCommand command) |
Modifier and Type | Method and Description |
---|---|
protected ImapMessage |
createMessage(ImapCommand command,
String referenceName,
String mailboxPattern,
String tag) |
protected ImapMessage |
decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
boolean useUids,
ImapSession session) |
protected ImapMessage |
decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session)
Parses a request into a command message for later processing.
|
ImapMessage |
decode(ImapRequestLineReader request,
String tag,
boolean useUids,
ImapSession session) |
String |
listMailbox(ImapRequestLineReader request)
Reads an argument of type "list_mailbox" from the request, which is the
second argument for a LIST or LSUB command.
|
getCommand, getStatusResponseFactory, parse, setStatusResponseFactory
public ListCommandParser()
protected ListCommandParser(ImapCommand command)
public String listMailbox(ImapRequestLineReader request) throws DecodingException
DecodingException
protected ImapMessage decode(ImapCommand command, ImapRequestLineReader request, String tag, boolean useUids, ImapSession session) throws DecodingException
DecodingException
AbstractUidCommandParser.decode(org.apache.james.imap.api.ImapCommand,
org.apache.james.imap.decode.ImapRequestLineReader, java.lang.String,
boolean, org.apache.james.imap.api.process.ImapSession)
protected ImapMessage createMessage(ImapCommand command, String referenceName, String mailboxPattern, String tag)
protected ImapMessage decode(ImapCommand command, ImapRequestLineReader request, String tag, ImapSession session) throws DecodingException
AbstractImapCommandParser
decode
in class AbstractImapCommandParser
command
- ImapCommand
to be parsed, not nullrequest
- ImapRequestLineReader
, not nulltag
- command tag, not nullsession
- imap sessionImapCommandMessage
, not nullDecodingException
- if the request cannot be parsedpublic ImapMessage decode(ImapRequestLineReader request, String tag, boolean useUids, ImapSession session) throws DecodingException
DecodingException
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.