Exemplo n.º 1
0
 public void handleEvent(final ConnectedStreamChannel channel) {
   if (UndertowLogger.REQUEST_LOGGER.isTraceEnabled()) {
     UndertowLogger.REQUEST_LOGGER.tracef("Opened connection with %s", channel.getPeerAddress());
   }
   final PushBackStreamChannel pushBackStreamChannel = new PushBackStreamChannel(channel);
   HttpServerConnection connection =
       new HttpServerConnection(
           channel, bufferPool, rootHandler, maxConcurrentRequestsPerConnection);
   HttpReadListener readListener = new HttpReadListener(channel, connection);
   pushBackStreamChannel.getReadSetter().set(readListener);
   readListener.handleEvent(pushBackStreamChannel);
   channel.resumeReads();
 }