Java Code Examples for org.springframework.boot.autoconfigure.web.ErrorProperties#IncludeStacktrace
The following examples show how to use
org.springframework.boot.autoconfigure.web.ErrorProperties#IncludeStacktrace .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ErrorPagesController.java From springboot-learn with MIT License | 5 votes |
/** * Determine if the stacktrace attribute should be included. * * @param request the source request * @param produces the media type produced (or {@code MediaType.ALL}) * @return if the stacktrace attribute should be included */ protected boolean isIncludeStackTrace(HttpServletRequest request, MediaType produces) { ErrorProperties.IncludeStacktrace include = this.serverProperties.getError().getIncludeStacktrace(); if (include == ErrorProperties.IncludeStacktrace.ALWAYS) { return true; } return include == ErrorProperties.IncludeStacktrace.ON_TRACE_PARAM && getTraceParameter(request); }
Example 2
Source File: CustomErrorController.java From syhthems-platform with MIT License | 5 votes |
private boolean isIncludeStackTrace(HttpServletRequest request, MediaType produces) { ErrorProperties.IncludeStacktrace include = getErrorProperties().getIncludeStacktrace(); if (include == ErrorProperties.IncludeStacktrace.ALWAYS) { return true; } if (include == ErrorProperties.IncludeStacktrace.ON_TRACE_PARAM) { return getTraceParameter(request); } return false; }
Example 3
Source File: ErrorPagesController.java From springboot-shiro with MIT License | 5 votes |
/** * Determine if the stacktrace attribute should be included. * * @param request the source request * @param produces the media type produced (or {@code MediaType.ALL}) * @return if the stacktrace attribute should be included */ protected boolean isIncludeStackTrace(HttpServletRequest request, MediaType produces) { ErrorProperties.IncludeStacktrace include = this.serverProperties.getError().getIncludeStacktrace(); if (include == ErrorProperties.IncludeStacktrace.ALWAYS) { return true; } return include == ErrorProperties.IncludeStacktrace.ON_TRACE_PARAM && getTraceParameter(request); }
Example 4
Source File: CommonController.java From halo with GNU General Public License v3.0 | 5 votes |
/** * Determine if the stacktrace attribute should be included. * * @param request the source request * @return if the stacktrace attribute should be included */ private boolean isIncludeStackTrace(HttpServletRequest request) { ErrorProperties.IncludeStacktrace include = errorProperties.getIncludeStacktrace(); if (include == ErrorProperties.IncludeStacktrace.ALWAYS) { return true; } if (include == ErrorProperties.IncludeStacktrace.ON_TRACE_PARAM) { return getTraceParameter(request); } return false; }
Example 5
Source File: ErrorController.java From NoteBlog with MIT License | 4 votes |
private boolean isIncludeStackTrace(HttpServletRequest request) { ErrorProperties.IncludeStacktrace include = this.serverProperties.getError().getIncludeStacktrace(); return include == ErrorProperties.IncludeStacktrace.ALWAYS || include == ErrorProperties.IncludeStacktrace.ON_TRACE_PARAM && getTraceParameter(request); }
Example 6
Source File: MetacatErrorController.java From metacat with Apache License 2.0 | 4 votes |
/** * Determine if the stacktrace attribute should be included. * @param request the source request * @return if the stacktrace attribute should be included */ private boolean isIncludeStackTrace(final HttpServletRequest request) { final ErrorProperties.IncludeStacktrace include = this.errorProperties.getIncludeStacktrace(); return include == ErrorProperties.IncludeStacktrace.ALWAYS || include == ErrorProperties.IncludeStacktrace.ON_TRACE_PARAM && getTraceParameter(request); }
Example 7
Source File: ErrorPagesController.java From OneBlog with GNU General Public License v3.0 | 3 votes |
/** * Determine if the stacktrace attribute should be included. * * @param request * the source request * @param produces * the media type produced (or {@code MediaType.ALL}) * @return if the stacktrace attribute should be included */ protected boolean isIncludeStackTrace(HttpServletRequest request, MediaType produces) { ErrorProperties.IncludeStacktrace include = this.serverProperties.getError().getIncludeStacktrace(); if (include == ErrorProperties.IncludeStacktrace.ALWAYS) { return true; } return include == ErrorProperties.IncludeStacktrace.ON_TRACE_PARAM && getTraceParameter(request); }