Package org.apache.james.protocols.api.logger

Examples of org.apache.james.protocols.api.logger.ProtocolLoggerAdapter


public class ExtendedSMTPSession extends org.apache.james.protocols.smtp.SMTPSessionImpl {
  
    private final SMTPConfiguration smtpConfiguration;

    public ExtendedSMTPSession(SMTPConfiguration smtpConfiguration, Logger logger, ProtocolTransport transport) {
        super(new ProtocolLoggerAdapter(logger), transport, smtpConfiguration);
        this.smtpConfiguration = smtpConfiguration;
    }
View Full Code Here


                String addr = st.nextToken();
                networks.add(addr);
            }
            authorizedNetworks = new NetMatcher(networks, dns);
        }
        SMTPProtocol transport = new SMTPProtocol(getProtocolHandlerChain(), theConfigData, new ProtocolLoggerAdapter(getLogger())) {

            @Override
            public ProtocolSession newSession(ProtocolTransport transport) {
                return new ExtendedSMTPSession(theConfigData, getLogger(), transport);
            }
View Full Code Here

        return lmtpConfig.getHelloName();
    }

    @Override
    protected ChannelUpstreamHandler createCoreHandler() {
        SMTPProtocol protocol = new SMTPProtocol(getProtocolHandlerChain(), lmtpConfig, new ProtocolLoggerAdapter(getLogger()));
        return new SMTPChannelUpstreamHandler(protocol, getLogger());
    }
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

    }

    @Override
    protected void preInit() throws Exception {
        super.preInit();
        POP3Protocol protocol = new POP3Protocol(getProtocolHandlerChain(), theConfigData, new ProtocolLoggerAdapter(getLogger()));
        coreHandler = new BasicChannelUpstreamHandler(protocol, getEncryption());
    }
View Full Code Here

    private int handlerCount;
    private final boolean plainAuthDisallowed;

    public NettyImapSession(Channel channel, Logger log, SSLContext sslContext, String[] enabledCipherSuites, boolean compress, boolean plainAuthDisallowed) {
        this.channel = channel;
        this.log = new ProtocolSessionLogger(channel.getId() + "", new ProtocolLoggerAdapter(log));
        this.sslContext = sslContext;
        this.enabledCipherSuites = enabledCipherSuites;
        this.compress = compress;
        this.plainAuthDisallowed = plainAuthDisallowed;
    }
View Full Code Here

TOP

Related Classes of org.apache.james.protocols.api.logger.ProtocolLoggerAdapter

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.