Package org.apache.james.protocols.lib

Examples of org.apache.james.protocols.lib.Slf4jLoggerAdapter


                username = recipient.toString();
            } else {
                username = recipient.getLocalPart();
            }

            MailboxSession mailboxSession = mailboxManager.createSystemSession(username, new Slf4jLoggerAdapter(session.getLogger()));
            MailboxPath inbox = MailboxPath.inbox(mailboxSession);

            mailboxManager.startProcessingRequest(mailboxSession);

            // create inbox if not exist
View Full Code Here


    @Override
    protected Mailbox auth(POP3Session session, String username, String password) throws Exception {
        MailboxSession mSession = null;
        try {
            mSession = manager.login(session.getUser(), password, new Slf4jLoggerAdapter(session.getLogger()));
            manager.startProcessingRequest(mSession);
            MailboxPath inbox = MailboxPath.inbox(mSession);
           
            // check if the mailbox exists, if not create it
            if (!manager.mailboxExists(inbox, mSession)) {
View Full Code Here

        this.compress = compress;
        this.plainAuthDisallowed = plainAuthDisallowed;
    }

    private Logger getLogger(Channel channel) {
        return new Slf4jLoggerAdapter(new ProtocolSessionLogger("" + channel.getId(), new ProtocolLoggerAdapter(logger)));
    }
View Full Code Here

    /**
     * @see org.apache.james.imap.api.process.ImapSession#getLog()
     */
    public Logger getLog() {
        return new Slf4jLoggerAdapter(log);
    }
View Full Code Here

TOP

Related Classes of org.apache.james.protocols.lib.Slf4jLoggerAdapter

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.