/** * Get application-wide tracing level threshold. * @param configuration configuration * @return tracing level threshold. */ static String getTracingThreshold(Configuration configuration) { return TRACING.AVAILABLE ? RESTEasyTracingUtils.getRESTEasyTracingThreshold(configuration).toString() : null; } }
/** * Get application-wide tracing level threshold. * * @return tracing level threshold. */ static RESTEasyTracingLevel getRESTEasyTracingThreshold(Configuration configuration) { final Object thresholdText = configuration.getProperty(ResteasyContextParameters.RESTEASY_TRACING_THRESHOLD); return (thresholdText == null) ? RESTEasyTracing.DEFAULT_LEVEL : RESTEasyTracingLevel.valueOf((String) thresholdText); }
static RESTEasyTracingLogger create(String tracingThreshold, String tracingLoggerNameSuffix, String tracingInfoFormat) { if (!TRACING.AVAILABLE) { return EMPTY; } return new RESTEasyTracingLoggerImpl(RESTEasyTracingLevel.valueOf(tracingThreshold), tracingLoggerNameSuffix, tracingInfoFormat); }
static String getTracingThreshold(RESTEasyTracingLevel appThreshold, HttpRequest request) { final String thresholdText = getHeaderString(request, RESTEasyTracing.HEADER_THRESHOLD); return (thresholdText == null) ? appThreshold.toString() : thresholdText; }
static RESTEasyTracingLogger create(String tracingThreshold, String tracingLoggerNameSuffix, String tracingInfoFormat) { if (!TRACING.AVAILABLE) { return EMPTY; } return new RESTEasyTracingLoggerImpl(RESTEasyTracingLevel.valueOf(tracingThreshold), tracingLoggerNameSuffix, tracingInfoFormat); }
/** * Get application-wide tracing level threshold. * @param configuration configuration * @return tracing level threshold. */ static String getTracingThreshold(Configuration configuration) { return TRACING.AVAILABLE ? RESTEasyTracingUtils.getRESTEasyTracingThreshold(configuration).toString() : null; } }
/** * Get application-wide tracing level threshold. * * @return tracing level threshold. */ static RESTEasyTracingLevel getRESTEasyTracingThreshold(Configuration configuration) { final Object thresholdText = configuration.getProperty(ResteasyContextParameters.RESTEASY_TRACING_THRESHOLD); return (thresholdText == null) ? RESTEasyTracing.DEFAULT_LEVEL : RESTEasyTracingLevel.valueOf((String) thresholdText); }
static String getTracingThreshold(RESTEasyTracingLevel appThreshold, HttpRequest request) { final String thresholdText = getHeaderString(request, RESTEasyTracing.HEADER_THRESHOLD); return (thresholdText == null) ? appThreshold.toString() : thresholdText; }