final NettyHttpRequest nettyHttpRequest = new NettyHttpRequest(messageEvent, httpRequest, id, timestamp);
DefaultHttpResponse ok_200 = new DefaultHttpResponse(HTTP_1_1, OK);
final NettyHttpResponse nettyHttpResponse = new NettyHttpResponse(
ctx, ok_200, isKeepAlive(httpRequest), exceptionHandler);
Iterator<HttpHandler> httpHandlers = this.httpHandlers.iterator();
final HttpControl control = new NettyHttpControl(httpHandlers, executor, ctx,
nettyHttpRequest, nettyHttpResponse, httpRequest, ok_200,
exceptionHandler, ioExceptionHandler);
executor.execute(new Runnable() {
@Override
public void run() {
try {
control.nextHandler(nettyHttpRequest, nettyHttpResponse);
} catch (Exception exception) {
exceptionHandler.uncaughtException(Thread.currentThread(), WebbitException.fromException(exception, ctx.getChannel()));
}
}
});