Package org.apache.james.imap.message.response

Examples of org.apache.james.imap.message.response.RecentResponse


        responder.respond(untaggedOk);
    }

    private void recent(Responder responder, final SelectedMailbox selected) {
        final int recentCount = selected.recentCount();
        final RecentResponse recentResponse = new RecentResponse(recentCount);
        responder.respond(recentResponse);
    }
View Full Code Here


    public boolean isAcceptable(final ImapMessage message) {
        return (message instanceof RecentResponse);
    }

    protected void doEncode(ImapMessage acceptableMessage, ImapResponseComposer composer, ImapSession session) throws IOException {
        final RecentResponse recentResponse = (RecentResponse) acceptableMessage;
        final int numberFlaggedRecent = recentResponse.getNumberFlaggedRecent();
        composer.untagged().message(numberFlaggedRecent).message(RECENT).end();
    }
View Full Code Here

        return mailbox;
    }

    private void addRecentResponses(final SelectedMailbox selected, final ImapProcessor.Responder responder) {
        final int recentCount = selected.recentCount();
        RecentResponse response = new RecentResponse(recentCount);
        responder.respond(response);
    }
View Full Code Here

    }

    private void addRecentResponses(final SelectedMailbox selected, final ImapProcessor.Responder responder) {
        final int recentCount = selected.recentCount();
        // TODO: use factory
        RecentResponse response = new RecentResponse(recentCount);
        responder.respond(response);
    }
View Full Code Here

        responder.respond(untaggedOk);
    }

    private void recent(Responder responder, final SelectedMailbox selected) {
        final int recentCount = selected.recentCount();
        final RecentResponse recentResponse = new RecentResponse(recentCount);
        responder.respond(recentResponse);
    }
View Full Code Here

    }

    protected void doEncode(ImapMessage acceptableMessage, ImapResponseComposer composer, ImapSession session) throws IOException { // TODO
        // Auto-generated
        // method stub
        final RecentResponse recentResponse = (RecentResponse) acceptableMessage;
        final int numberFlaggedRecent = recentResponse.getNumberFlaggedRecent();
        composer.recentResponse(numberFlaggedRecent);
    }
View Full Code Here

TOP

Related Classes of org.apache.james.imap.message.response.RecentResponse

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.