private FullHttpResponse buildResponse(WebContext webContext) { WebContext.set(webContext); return routeHandler.handleResponse( webContext.getRequest(), webContext.getResponse(), webContext.getChannelHandlerContext() ); }
private FullHttpResponse buildResponse(WebContext webContext) { WebContext.set(webContext); return routeHandler.handleResponse( webContext.getRequest(), webContext.getResponse(), webContext.getChannelHandlerContext() ); }
private FullHttpResponse handleException(Throwable e) { Request request = WebContext.request(); Response response = WebContext.response(); String method = request.method(); String uri = request.uri(); Exception srcException = (Exception) e.getCause().getCause(); if (srcException instanceof BladeException) { } else { log500(log, method, uri); } if (null != WebContext.blade().exceptionHandler()) { WebContext.blade().exceptionHandler().handle(srcException); } else { log.error("", srcException); } return routeHandler.handleResponse( request, response, WebContext.get().getChannelHandlerContext() ); }
private FullHttpResponse handleException(Throwable e) { Request request = WebContext.request(); Response response = WebContext.response(); String method = request.method(); String uri = request.uri(); Exception srcException = (Exception) e.getCause().getCause(); if (srcException instanceof BladeException) { } else { log500(log, method, uri); } if (null != WebContext.blade().exceptionHandler()) { WebContext.blade().exceptionHandler().handle(srcException); } else { log.error("", srcException); } return routeHandler.handleResponse( request, response, WebContext.get().getChannelHandlerContext() ); }
Request request = webContext.getRequest(); ChannelHandlerContext ctx = webContext.getChannelHandlerContext();
Request request = webContext.getRequest(); ChannelHandlerContext ctx = webContext.getChannelHandlerContext();
private FullHttpResponse buildResponse(WebContext webContext) { WebContext.set(webContext); return routeHandler.handleResponse( webContext.getRequest(), webContext.getResponse(), webContext.getChannelHandlerContext() ); }
private FullHttpResponse handleException(Throwable e) { Request request = WebContext.request(); Response response = WebContext.response(); String method = request.method(); String uri = request.uri(); Exception srcException = (Exception) e.getCause().getCause(); if (srcException instanceof BladeException) { } else { log500(log, method, uri); } if (null != WebContext.blade().exceptionHandler()) { WebContext.blade().exceptionHandler().handle(srcException); } else { log.error("", srcException); } return routeHandler.handleResponse( request, response, WebContext.get().getChannelHandlerContext() ); }
Request request = webContext.getRequest(); ChannelHandlerContext ctx = webContext.getChannelHandlerContext();