public class SearchCommandParser extends AbstractImapCommandParser
| Constructor and Description |
|---|
SearchCommandParser() |
| Modifier and Type | Method and Description |
|---|---|
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) |
SearchKey |
decode(ImapSession session,
ImapRequestLineReader request) |
protected SearchKey |
searchKey(ImapSession session,
ImapRequestLineReader request,
Charset charset,
boolean isFirstToken)
Parses the request argument into a valid search term.
|
getCommand, getStatusResponseFactory, parse, setStatusResponseFactoryprotected SearchKey searchKey(ImapSession session, ImapRequestLineReader request, Charset charset, boolean isFirstToken) throws DecodingException, IllegalCharsetNameException, UnsupportedCharsetException
request - ImapRequestLineReader, not nullcharset - Charset or null if there is no charsetisFirstToken - true when this is the first token read, false otherwiseDecodingExceptionIllegalCharsetNameExceptionUnsupportedCharsetExceptionpublic SearchKey decode(ImapSession session, ImapRequestLineReader request) throws DecodingException, IllegalCharsetNameException, UnsupportedCharsetException
protected ImapMessage decode(ImapCommand command, ImapRequestLineReader request, String tag, boolean useUids, ImapSession session) throws DecodingException
DecodingExceptionAbstractUidCommandParser.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 decode(ImapCommand command, ImapRequestLineReader request, String tag, ImapSession session) throws DecodingException
AbstractImapCommandParserdecode in class AbstractImapCommandParsercommand - 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
DecodingExceptionCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.