public class AppendCommandParser extends AbstractImapCommandParser
Constructor and Description |
---|
AppendCommandParser() |
Modifier and Type | Method and Description |
---|---|
protected ImapMessage |
decode(ImapCommand command,
ImapRequestLineReader request,
String tag,
ImapSession session)
Parses a request into a command message for later processing.
|
javax.mail.Flags |
optionalAppendFlags(ImapRequestLineReader request)
If the next character in the request is a '(', tries to read a
"flag_list" argument from the request.
|
Date |
optionalDateTime(ImapRequestLineReader request)
If the next character in the request is a '"', tries to read a DateTime
argument.
|
getCommand, getStatusResponseFactory, parse, setStatusResponseFactory
public javax.mail.Flags optionalAppendFlags(ImapRequestLineReader request) throws DecodingException
DecodingException
public Date optionalDateTime(ImapRequestLineReader request) throws DecodingException
DecodingException
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 parsedAbstractImapCommandParser.decode(org.apache.james.imap.api.ImapCommand,
org.apache.james.imap.decode.ImapRequestLineReader, java.lang.String,
org.apache.james.imap.api.process.ImapSession)
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.