processor.init(); processors.add(processor);
processor.init(); processors.add(processor);
@Override protected AbstractConnection newServerConnection(Connector connector, EndPoint endPoint, SSLEngine engine, List<String> protocols, String defaultProtocol) { for (Server processor : processors) { if (processor.appliesTo(engine)) { if (LOG.isDebugEnabled()) LOG.debug("{} for {} on {}", processor, engine, endPoint); ALPNServerConnection connection = new ALPNServerConnection(connector, endPoint, engine, protocols, defaultProtocol); processor.configure(engine, connection); return connection; } } if (LOG.isDebugEnabled()) LOG.debug("No ALPNProcessor: {} {}",engine,endPoint); throw new IllegalStateException("Connection rejected: No ALPN Processor for " + engine.getClass().getName() + " from " + processors); } }
@Override protected AbstractConnection newServerConnection(Connector connector, EndPoint endPoint, SSLEngine engine, List<String> protocols, String defaultProtocol) { for (Server processor : processors) { if (processor.appliesTo(engine)) { if (LOG.isDebugEnabled()) LOG.debug("{} for {} on {}", processor, engine, endPoint); ALPNServerConnection connection = new ALPNServerConnection(connector, endPoint, engine, protocols, defaultProtocol); processor.configure(engine, connection); return connection; } } if (LOG.isDebugEnabled()) LOG.debug("No ALPNProcessor: {} {}",engine,endPoint); throw new IllegalStateException("Connection rejected: No ALPN Processor for " + engine.getClass().getName() + " from " + processors); } }