Package org.apache.james.imap.api

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


     * 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 IdleRequest(command, tag);
        return result;
    }
View Full Code Here


    protected ImapMessage decode(ImapCommand command, ImapRequestLineReader request, String tag, boolean useUids, ImapSession session) throws DecodingException {
        IdRange[] idSet = request.parseIdRange(session);
        FetchData fetch = fetchRequest(request);
        request.eol();

        final ImapMessage result = new FetchRequest(command, useUids, idSet, fetch, tag);
        return result;
    }
View Full Code Here

    public AbstractUidCommandParser(final ImapCommand command) {
        super(command);
    }

    protected ImapMessage decode(ImapCommand command, ImapRequestLineReader request, String tag, ImapSession session) throws DecodingException {
        final ImapMessage result = decode(command, request, tag, false, session);
        return result;
    }
View Full Code Here

        return result;
    }

    public ImapMessage decode(ImapRequestLineReader request, String tag, boolean useUids, ImapSession session) throws DecodingException {
        final ImapCommand command = getCommand();
        final ImapMessage result = decode(command, request, tag, useUids, session);
        return result;
    }
View Full Code Here

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

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

     * org.apache.james.imap.decode.ImapDecoder#decode(org.apache.james.imap
     * .decode.ImapRequestLineReader,
     * org.apache.james.imap.api.process.ImapSession)
     */
    public ImapMessage decode(ImapRequestLineReader request, ImapSession session) {
        ImapMessage message;
        final Logger logger = session.getLog();

        try {
            final String tag = request.tag();
            message = decodeCommandTagged(request, tag, session);
View Full Code Here

        }
        return message;
    }

    private ImapMessage decodeCommandTagged(final ImapRequestLineReader request, final String tag, final ImapSession session) {
        ImapMessage message;
        if (session.getLog().isDebugEnabled()) {
            session.getLog().debug("Got <tag>: " + tag);
        }
        try {
            final String commandName = request.atom();
View Full Code Here

        }
        return message;
    }

    private ImapMessage unknownCommand(final String tag, final ImapSession session) {
        ImapMessage message;
        Object c = session.getAttribute(INVALID_COMMAND_COUNT);
        int count = 0;
        if (c != null) {
            count = (Integer) c;
        }
View Full Code Here

        return message;
    }

    private ImapMessage decodeCommandNamed(final ImapRequestLineReader request, final String tag, String commandName, final ImapSession session) {
        ImapMessage message;
        if (session.getLog().isDebugEnabled()) {
            session.getLog().debug("Got <command>: " + commandName);
        }
        final ImapCommandParser command = imapCommands.getParser(commandName);
        if (command == null) {
View Full Code Here

     * org.apache.james.imap.decode.parser.ListCommandParser#createMessage(org
     * .apache.james.imap.api.ImapCommand, java.lang.String, java.lang.String,
     * java.lang.String)
     */
    protected ImapMessage createMessage(ImapCommand command, String referenceName, String mailboxPattern, String tag) {
        final ImapMessage result = new LsubRequest(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.