@Override protected void preInit() throws Exception { super.preInit(); POP3Protocol protocol = new POP3Protocol(getProtocolHandlerChain(), theConfigData); coreHandler = new BasicChannelUpstreamHandler(protocol, getEncryption()); }
@Override public ProtocolSession newSession(ProtocolTransport transport) { return new POP3SessionImpl(transport, getConfiguration()); }
public void start() throws Exception { Logger logger = new POP3ProtocolLogger(); POP3ProtocolHandlerChain chain = new POP3ProtocolHandlerChain(new AuthHandler(backend)); server = new NettyServer(new POP3Protocol(chain, new POP3ServerConfig(), logger)); server.setListenAddresses(new InetSocketAddress(Configurator.getPop3Port())); server.setMaxConcurrentConnections(Configurator.getPop3MaxConnections()); server.setTimeout(POP3ServerConfig.CONNECTION_TIMEOUT); server.setUseExecutionHandler(true, 16); server.bind(); }
private POP3Protocol createProtocol(AbstractPassCmdHandler handler) throws WiringException { return new POP3Protocol(new POP3ProtocolHandlerChain(handler), new POP3Configuration()); }
private POP3Protocol createProtocol(AbstractPassCmdHandler handler) throws WiringException { return new POP3Protocol(new POP3ProtocolHandlerChain(handler), new POP3Configuration()); }
private POP3Protocol createProtocol(AbstractPassCmdHandler handler) throws WiringException { return new POP3Protocol(new POP3ProtocolHandlerChain(handler), new POP3Configuration()); }
private POP3Protocol createProtocol(AbstractPassCmdHandler handler) throws WiringException { return new POP3Protocol(new POP3ProtocolHandlerChain(handler), new POP3Configuration()); }