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

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


                    && !myRights.contains(Rfc4314Rights.k_CreateMailbox_RIGHT)
                    && !myRights.contains(Rfc4314Rights.x_DeleteMailbox_RIGHT)
                    && !myRights.contains(Rfc4314Rights.a_Administer_RIGHT)) {
                no(command, tag, responder, HumanReadableText.MAILBOX_NOT_FOUND);
            } else {
                MyRightsResponse myRightsResponse = new MyRightsResponse(mailboxName, myRights);
                responder.respond(myRightsResponse);
                okComplete(command, tag, responder);
                // FIXME should we send unsolicited responses here?
                // unsolicitedResponses(session, responder, false);
            }
View Full Code Here


     * (org.apache.james.imap.api.ImapMessage,
     * org.apache.james.imap.encode.ImapResponseComposer,
     * org.apache.james.imap.api.process.ImapSession)
     */
    protected void doEncode(ImapMessage acceptableMessage, ImapResponseComposer composer, ImapSession session) throws IOException {
        final MyRightsResponse aclResponse = (MyRightsResponse) acceptableMessage;
        final MailboxACLRights myRights = aclResponse.getMyRights();
        composer.untagged();
        composer.commandName(ImapConstants.MYRIGHTS_RESPONSE_NAME);
       
        String mailboxName = aclResponse.getMailboxName();
        composer.mailbox(mailboxName == null ? "" : mailboxName);
        composer.quote(myRights == null ? "" : myRights.serialize());
        composer.end();
    }
View Full Code Here

TOP

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

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.