public class ExtendedMappingExceptionResolver extends SimpleMappingExceptionResolver
As a default, the view model will include a reference to the active HttpServletRequest
and the HTMLEncoder class.
| Modifier and Type | Field and Description |
|---|---|
private static String |
MODEL_ATTR_ENCODER
Model attribute carrying the
HTMLEncoder class. |
private static String |
MODEL_ATTR_REQUEST
Model attribute carrying
HttpServletRequest. |
private static String |
MODEL_ATTR_SPRINGCONTEXT
Model attribute carrying
WebApplicationContext. |
private Function<HttpServletRequest,Map<String,Object>> |
viewModelExtenderFunction
Function to obtain extensions to view model.
|
DEFAULT_EXCEPTION_ATTRIBUTEloggerHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
ExtendedMappingExceptionResolver()
Constructor.
|
ExtendedMappingExceptionResolver(Function<HttpServletRequest,Map<String,Object>> extender)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected ModelAndView |
getModelAndView(String viewName,
Exception ex,
HttpServletRequest request) |
addStatusCode, applyStatusCodeIfPossible, determineStatusCode, determineViewName, doResolveException, findMatchingViewName, getDepth, getModelAndView, getStatusCodesAsMap, setDefaultErrorView, setDefaultStatusCode, setExceptionAttribute, setExceptionMappings, setExcludedExceptions, setStatusCodesbuildLogMessage, getOrder, logException, prepareResponse, preventCaching, resolveException, setMappedHandlerClasses, setMappedHandlers, setOrder, setPreventResponseCaching, setWarnLogCategory, shouldApplyTo@Nonnull private static final String MODEL_ATTR_REQUEST
HttpServletRequest.@Nonnull private static final String MODEL_ATTR_SPRINGCONTEXT
WebApplicationContext.@Nonnull private static final String MODEL_ATTR_ENCODER
HTMLEncoder class.public ExtendedMappingExceptionResolver()
protected ModelAndView getModelAndView(String viewName, Exception ex, HttpServletRequest request)
getModelAndView in class SimpleMappingExceptionResolverCopyright © 1999–2016 Shibboleth Consortium. All rights reserved.