public class ExtendedMappingExceptionResolver
extends org.springframework.web.servlet.handler.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 com.google.common.base.Function<javax.servlet.http.HttpServletRequest,Map<String,Object>> |
viewModelExtenderFunction
Function to obtain extensions to view model.
|
DEFAULT_EXCEPTION_ATTRIBUTE| Constructor and Description |
|---|
ExtendedMappingExceptionResolver()
Constructor.
|
ExtendedMappingExceptionResolver(com.google.common.base.Function<javax.servlet.http.HttpServletRequest,Map<String,Object>> extender)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.web.servlet.ModelAndView |
getModelAndView(String viewName,
Exception ex,
javax.servlet.http.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.Copyright © 1999–2019 Shibboleth Consortium. All rights reserved.