public CompletionStage<BuiltResponse> invoke(HttpRequest request, HttpResponse response, Object target) { request.setAttribute(ResourceMethodInvoker.class.getName(), this); incrementMethodCount(request.getHttpMethod()); ResteasyUriInfo uriInfo = (ResteasyUriInfo) request.getUri(); if (method.getPath() != null) { uriInfo.pushMatchedURI(uriInfo.getMatchingPath()); } uriInfo.pushCurrentResource(target); BuiltResponse rtn = invokeOnTarget(request, response, target); // FIXME: async return CompletableFuture.completedFuture(rtn); }
public CompletionStage<Object> invokeDryRun(HttpRequest request, HttpResponse response, Object target) { request.setAttribute(ResourceMethodInvoker.class.getName(), this); incrementMethodCount(request.getHttpMethod()); ResteasyUriInfo uriInfo = (ResteasyUriInfo) request.getUri(); if (method.getPath() != null) { uriInfo.pushMatchedURI(uriInfo.getMatchingPath()); } uriInfo.pushCurrentResource(target); return invokeOnTargetDryRun(request, response, target); }
public RootNode match(HttpRequest request, int start) String path = ((ResteasyUriInfo) request.getUri()).getMatchingPath(); if (start < path.length() && path.charAt(start) == '/') start++; List<ClassExpression> potentials = new ArrayList<ClassExpression>();
public ResourceInvoker match(HttpRequest request, int start) String path = ((ResteasyUriInfo) request.getUri()).getMatchingPath(); RESTEasyTracingLogger logger = RESTEasyTracingLogger.getInstance(request); logger.log("MATCH_PATH_FIND", ((ResteasyUriInfo)request.getUri()).getMatchingPath());
public CompletionStage<BuiltResponse> invoke(HttpRequest request, HttpResponse response, Object target) { request.setAttribute(ResourceMethodInvoker.class.getName(), this); incrementMethodCount(request.getHttpMethod()); ResteasyUriInfo uriInfo = (ResteasyUriInfo) request.getUri(); if (method.getPath() != null) { uriInfo.pushMatchedURI(uriInfo.getMatchingPath()); } uriInfo.pushCurrentResource(target); BuiltResponse rtn = invokeOnTarget(request, response, target); // FIXME: async return CompletableFuture.completedFuture(rtn); }
public CompletionStage<Object> invokeDryRun(HttpRequest request, HttpResponse response, Object target) { request.setAttribute(ResourceMethodInvoker.class.getName(), this); incrementMethodCount(request.getHttpMethod()); ResteasyUriInfo uriInfo = (ResteasyUriInfo) request.getUri(); if (method.getPath() != null) { uriInfo.pushMatchedURI(uriInfo.getMatchingPath()); } uriInfo.pushCurrentResource(target); return invokeOnTargetDryRun(request, response, target); }
public RootNode match(HttpRequest request, int start) String path = ((ResteasyUriInfo) request.getUri()).getMatchingPath(); if (start < path.length() && path.charAt(start) == '/') start++; List<ClassExpression> potentials = new ArrayList<ClassExpression>();
public ResourceInvoker match(HttpRequest request, int start) String path = ((ResteasyUriInfo) request.getUri()).getMatchingPath(); RESTEasyTracingLogger logger = RESTEasyTracingLogger.getInstance(request); logger.log("MATCH_PATH_FIND", ((ResteasyUriInfo)request.getUri()).getMatchingPath());