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 Map<String,Object> |
getErrorAttributes(HttpServletRequest request,
boolean includeStackTrace) |
protected org.springframework.http.HttpStatus |
getStatus(HttpServletRequest request) |
protected boolean |
getTraceParameter(HttpServletRequest request) |
protected org.springframework.web.servlet.ModelAndView |
resolveErrorView(HttpServletRequest request,
HttpServletResponse response,
org.springframework.http.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)
protected Map<String,Object> getErrorAttributes(HttpServletRequest request, boolean includeStackTrace)
protected boolean getTraceParameter(HttpServletRequest request)
protected org.springframework.http.HttpStatus getStatus(HttpServletRequest request)
protected org.springframework.web.servlet.ModelAndView resolveErrorView(HttpServletRequest request, HttpServletResponse response, org.springframework.http.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
usedCopyright © 2017 Pivotal Software, Inc.. All rights reserved.