private CompletionStage<Object> internalInvokeOnTarget(HttpRequest request, HttpResponse response, Object target) { PostResourceMethodInvokers postResourceMethodInvokers = ResteasyContext.getContextData(PostResourceMethodInvokers.class); return this.methodInjector.invoke(request, response, target) .handle((ret, exception) -> { // on success if (exception == null && postResourceMethodInvokers != null) { postResourceMethodInvokers.getInvokers().forEach(e -> e.invoke()); } // finally if (postResourceMethodInvokers != null) { postResourceMethodInvokers.clear(); } if(exception != null) { SynchronousDispatcher.rethrow(exception); // never reached return null; } return ret; }); }
if(t.getCause() instanceof NotFoundException && lastException != null) throw lastException; SynchronousDispatcher.rethrow(t);
SynchronousDispatcher.rethrow(t);
SynchronousDispatcher.rethrow(ex.getCause());
SynchronousDispatcher.rethrow(throwable); else
SynchronousDispatcher.rethrow(throwable); else
private CompletionStage<Object> internalInvokeOnTarget(HttpRequest request, HttpResponse response, Object target) { PostResourceMethodInvokers postResourceMethodInvokers = ResteasyContext.getContextData(PostResourceMethodInvokers.class); return this.methodInjector.invoke(request, response, target) .handle((ret, exception) -> { // on success if (exception == null && postResourceMethodInvokers != null) { postResourceMethodInvokers.getInvokers().forEach(e -> e.invoke()); } // finally if (postResourceMethodInvokers != null) { postResourceMethodInvokers.clear(); } if(exception != null) { SynchronousDispatcher.rethrow(exception); // never reached return null; } return ret; }); }
SynchronousDispatcher.rethrow(t);
SynchronousDispatcher.rethrow(t);
if(t.getCause() instanceof NotFoundException && lastException != null) throw lastException; SynchronousDispatcher.rethrow(t);
SynchronousDispatcher.rethrow(ex.getCause());
SynchronousDispatcher.rethrow(throwable); else
SynchronousDispatcher.rethrow(throwable); else
SynchronousDispatcher.rethrow(throwable); else
SynchronousDispatcher.rethrow(throwable); else