Package org.apache.james.protocols.smtp

Examples of org.apache.james.protocols.smtp.SMTPProtocol


    LMTPProtocolHandlerChain chain = new LMTPProtocolHandlerChain();
    chain.add(0, new ElasticInboxDeliveryHandler(backend));
    chain.add(0, new ValidRcptHandler());
    chain.wireExtensibleHandlers();

    server = new NettyServer(new SMTPProtocol(chain, new LMTPServerConfig(), logger));
    server.setListenAddresses(new InetSocketAddress(Configurator.getLmtpPort()));
    server.setMaxConcurrentConnections(Configurator.getLmtpMaxConnections());
    server.setTimeout(LMTPServerConfig.CONNECTION_TIMEOUT);
    server.setUseExecutionHandler(true, 16);
    server.bind();
View Full Code Here


            }
            hList.add(handler);
        }
        chain.addAll(0, hList);
        chain.wireExtensibleHandlers();
        return new SMTPProtocol(chain, new LMTPConfigurationImpl(), new MockLogger());
    }
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

            }
            hList.add(handler);
        }
        chain.addAll(0, hList);
        chain.wireExtensibleHandlers();
        return new SMTPProtocol(chain, new LMTPConfigurationImpl(), new MockLogger());
    }
View Full Code Here

TOP

Related Classes of org.apache.james.protocols.smtp.SMTPProtocol

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.