public abstract class AbstractErrorController extends Object implements ErrorController
@Controller
implementations.ErrorAttributes
Constructor and Description |
---|
AbstractErrorController(ErrorAttributes errorAttributes) |
AbstractErrorController(ErrorAttributes errorAttributes,
List<ErrorViewResolver> errorViewResolvers) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
getBooleanParameter(HttpServletRequest request,
String parameterName) |
protected Map<String,Object> |
getErrorAttributes(HttpServletRequest request,
boolean includeStackTrace)
Deprecated.
since 2.3.0 for removal in 2.5.0 in favor of
getErrorAttributes(HttpServletRequest, ErrorAttributeOptions) |
protected Map<String,Object> |
getErrorAttributes(HttpServletRequest request,
ErrorAttributeOptions options) |
protected boolean |
getErrorsParameter(HttpServletRequest request) |
protected boolean |
getMessageParameter(HttpServletRequest request) |
protected HttpStatus |
getStatus(HttpServletRequest request) |
protected boolean |
getTraceParameter(HttpServletRequest request) |
protected ModelAndView |
resolveErrorView(HttpServletRequest request,
HttpServletResponse response,
HttpStatus status,
Map<String,Object> model)
Resolve any specific error views.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getErrorPath
public AbstractErrorController(ErrorAttributes errorAttributes)
public AbstractErrorController(ErrorAttributes errorAttributes, List<ErrorViewResolver> errorViewResolvers)
@Deprecated protected Map<String,Object> getErrorAttributes(HttpServletRequest request, boolean includeStackTrace)
getErrorAttributes(HttpServletRequest, ErrorAttributeOptions)
Map
of the error attributes.request
- the source requestincludeStackTrace
- if stack trace elements should be includedprotected Map<String,Object> getErrorAttributes(HttpServletRequest request, ErrorAttributeOptions options)
protected boolean getTraceParameter(HttpServletRequest request)
protected boolean getMessageParameter(HttpServletRequest request)
protected boolean getErrorsParameter(HttpServletRequest request)
protected boolean getBooleanParameter(HttpServletRequest request, String parameterName)
protected HttpStatus getStatus(HttpServletRequest request)
protected ModelAndView resolveErrorView(HttpServletRequest request, HttpServletResponse response, HttpStatus status, Map<String,Object> model)
ErrorViewResolvers
.request
- the requestresponse
- the responsestatus
- the HTTP statusmodel
- the suggested modelModelAndView
or null
if the default should be
used