Package org.apache.james.imap.api

Examples of org.apache.james.imap.api.ImapMessage


        if (datetime == null) {
            datetime = new Date();
        }
        request.nextWordChar();

        final ImapMessage result = new AppendRequest(command, mailboxName, flags, datetime, request.consumeLiteral(true), tag);
        return result;
    }
View Full Code Here


     * org.apache.james.imap.decode.ImapRequestLineReader, java.lang.String,
     * org.apache.james.imap.api.process.ImapSession)
     */
    protected ImapMessage decode(ImapCommand command, ImapRequestLineReader request, String tag, ImapSession session) throws DecodingException {
        request.eol();
        final ImapMessage result = new LogoutRequest(command, tag);
        return result;
    }
View Full Code Here

     */
    protected ImapMessage decode(ImapCommand command, ImapRequestLineReader request, String tag, ImapSession session) throws DecodingException {
        String mailboxName = request.mailbox();
        request.eol();

        final ImapMessage result = new DeleteRequest(command, mailboxName, tag);
        return result;
    }
View Full Code Here

        // TODO: replace abstract class with interface
        if (helperCommand == null || !(helperCommand instanceof AbstractUidCommandParser)) {
            throw new DecodingException(HumanReadableText.ILLEGAL_ARGUMENTS, "Invalid UID command: '" + commandName + "'");
        }
        final AbstractUidCommandParser uidEnabled = (AbstractUidCommandParser) helperCommand;
        final ImapMessage result = uidEnabled.decode(request, tag, true, session);
        return result;
    }
View Full Code Here

                }
            }
        }

        request.eol();
        final ImapMessage result = new StoreRequest(command, idSet, silent, flags, useUids, tag, sign, unchangedSince);
        return result;
    }
View Full Code Here

    protected ImapMessage decode(ImapCommand command, ImapRequestLineReader request, String tag, ImapSession session) throws DecodingException {
        final String userid = request.astring();
        final String password = request.astring();
        request.eol();

        final ImapMessage result = new LoginRequest(command, userid, password, tag);
        return result;
    }
View Full Code Here

     * org.apache.james.imap.decode.ImapRequestLineReader, java.lang.String,
     * org.apache.james.imap.api.process.ImapSession)
     */
    protected ImapMessage decode(ImapCommand command, ImapRequestLineReader request, String tag, ImapSession session) throws DecodingException {
        request.eol();
        final ImapMessage result = new CapabilityRequest(command, tag);
        return result;
    }
View Full Code Here

        if (useUids) {
            uidSet = request.parseIdRange(session);
        }
        request.eol();

        final ImapMessage result = new ExpungeRequest(command, tag, uidSet);
        return result;
    }
View Full Code Here

     * org.apache.james.imap.decode.ImapRequestLineReader, java.lang.String,
     * org.apache.james.imap.api.process.ImapSession)
     */
    protected ImapMessage decode(ImapCommand command, ImapRequestLineReader request, String tag, ImapSession session) throws DecodingException {
        request.eol();
        final ImapMessage result = new CheckRequest(command, tag);
        return result;
    }
View Full Code Here

     */
    protected ImapMessage decode(ImapCommand command, ImapRequestLineReader request, String tag, boolean useUids, ImapSession session) throws DecodingException {
        String referenceName = request.mailbox();
        String mailboxPattern = listMailbox(request);
        request.eol();
        final ImapMessage result = createMessage(command, referenceName, mailboxPattern, tag);
        return result;
    }
View Full Code Here

TOP

Related Classes of org.apache.james.imap.api.ImapMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.