public Response preprocess(HttpRequest request) { RESTEasyTracingLogger.initTracingSupport(providerFactory, request); Response aborted = null; RESTEasyTracingLogger tracingLogger = RESTEasyTracingLogger.getInstance(request); try { final long totalTimestamp = tracingLogger.timestamp("PRE_MATCH_SUMMARY"); for (HttpRequestPreprocessor preprocessor : this.requestPreprocessors) { final long timestamp = tracingLogger.timestamp("PRE_MATCH"); preprocessor.preProcess(request); tracingLogger.logDuration("PRE_MATCH", timestamp, preprocessor.getClass().toString()); } tracingLogger.logDuration("PRE_MATCH_SUMMARY", totalTimestamp, this.requestPreprocessors.size()); ContainerRequestFilter[] requestFilters = providerFactory.getContainerRequestFilterRegistry().preMatch(); // FIXME: support async PreMatchContainerRequestContext requestContext = new PreMatchContainerRequestContext(request, requestFilters, null); aborted = requestContext.filter(); } catch (Exception e) { //logger.error("Failed in preprocess, mapping exception", e); aborted = new ExceptionHandler(providerFactory, unwrappedExceptions).handleException(request, e); } return aborted; }
jaxrsResponse = new ExceptionHandler(providerFactory, unwrappedExceptions).handleException(request, e.getCause()); if (jaxrsResponse == null) throw new UnhandledException(e.getCause()); jaxrsResponse = new ExceptionHandler(providerFactory, unwrappedExceptions).handleException(request, e); if (jaxrsResponse == null) throw new UnhandledException(e);
return; Response handledResponse = new ExceptionHandler(providerFactory, unwrappedExceptions).handleException(request, e); if (handledResponse == null) throw new UnhandledException(e); if (!bufferExceptionEntity)
return; Response handledResponse = new ExceptionHandler(providerFactory, unwrappedExceptions).handleException(request, e); if (handledResponse == null) throw new UnhandledException(e); if (!bufferExceptionEntity)
public Response preprocess(HttpRequest request) { RESTEasyTracingLogger.initTracingSupport(providerFactory, request); Response aborted = null; RESTEasyTracingLogger tracingLogger = RESTEasyTracingLogger.getInstance(request); try { final long totalTimestamp = tracingLogger.timestamp("PRE_MATCH_SUMMARY"); for (HttpRequestPreprocessor preprocessor : this.requestPreprocessors) { final long timestamp = tracingLogger.timestamp("PRE_MATCH"); preprocessor.preProcess(request); tracingLogger.logDuration("PRE_MATCH", timestamp, preprocessor.getClass().toString()); } tracingLogger.logDuration("PRE_MATCH_SUMMARY", totalTimestamp, this.requestPreprocessors.size()); ContainerRequestFilter[] requestFilters = providerFactory.getContainerRequestFilterRegistry().preMatch(); // FIXME: support async PreMatchContainerRequestContext requestContext = new PreMatchContainerRequestContext(request, requestFilters, null); aborted = requestContext.filter(); } catch (Exception e) { //logger.error("Failed in preprocess, mapping exception", e); aborted = new ExceptionHandler(providerFactory, unwrappedExceptions).handleException(request, e); } return aborted; }
public Response preprocess(HttpRequest request) { Response aborted = null; try { for (HttpRequestPreprocessor preprocessor : this.requestPreprocessors) { preprocessor.preProcess(request); } ContainerRequestFilter[] requestFilters = providerFactory.getContainerRequestFilterRegistry().preMatch(); // FIXME: support async PreMatchContainerRequestContext requestContext = new PreMatchContainerRequestContext(request, requestFilters, null); aborted = requestContext.filter(); } catch (Exception e) { //logger.error("Failed in preprocess, mapping exception", e); aborted = new ExceptionHandler(providerFactory, unwrappedExceptions).handleException(request, e); } return aborted; }
return; Response handledResponse = new ExceptionHandler(providerFactory, unwrappedExceptions).handleException(request, e); if (handledResponse == null) throw new UnhandledException(e); if (!bufferExceptionEntity)
jaxrsResponse = new ExceptionHandler(providerFactory, unwrappedExceptions).handleException(request, e.getCause()); if (jaxrsResponse == null) throw new UnhandledException(e.getCause()); jaxrsResponse = new ExceptionHandler(providerFactory, unwrappedExceptions).handleException(request, e); if (jaxrsResponse == null) throw new UnhandledException(e);
jaxrsResponse = new ExceptionHandler(providerFactory, unwrappedExceptions).handleException(request, e); if (jaxrsResponse == null) throw new UnhandledException(e);