private HttpRequestDispatch createRequestDispatch(HttpServletRequest request, HttpServletResponse response) { try { final AccessLogEntry accessLogEntry = null; // Not used in this context. return new HttpRequestDispatch(jDiscContext, accessLogEntry, getConnector(request).getRequestMetricContext(request), request, response); } catch (IOException e) { throw throwUnchecked(e); } }
ContentChannel handleRequestFilterResponse(Response response) { try { jettyRequest.getInputStream().close(); ContentChannel responseContentChannel = servletResponseController.responseHandler.handleResponse(response); servletResponseController.finishedFuture().whenComplete(completeRequestCallback); return responseContentChannel; } catch (IOException e) { throw throwUnchecked(e); } }