private void service(int i, Context context, HttpServerRequest req, HttpServerResponse resp, HttpRequest vertxReq, HttpResponse vertxResp, boolean handleNotFound) throws IOException { if(i < plugins.size()) plugins.get(i).aroundRequest(vertxReq, () -> service(i+1, context, req, resp, vertxReq, vertxResp, handleNotFound)); else super.service(context, req, resp, vertxReq, vertxResp, handleNotFound); } }
private void service(int i, Context context, HttpServerRequest req, HttpServerResponse resp, HttpRequest vertxReq, HttpResponse vertxResp, boolean handleNotFound) throws IOException { if(i < plugins.size()) plugins.get(i).aroundRequest(vertxReq, () -> service(i+1, context, req, resp, vertxReq, vertxResp, handleNotFound)); else super.service(context, req, resp, vertxReq, vertxResp, handleNotFound); } }