/** * The {@link AbstractPassCmdHandler}'s to use. If at least one {@link AbstractPassCmdHandler} is given, the {@link POP3ProtocolHandlerChain} * will add all default handlers * * @param authHandlers * @throws WiringException */ public POP3ProtocolHandlerChain(AbstractPassCmdHandler... authHandlers) throws WiringException { if (authHandlers != null && authHandlers.length > 0) { addAll(initDefaultHandlers(authHandlers)); wireExtensibleHandlers(); } }
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()); }
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(); }