public class SessionFlashMapManager extends AbstractFlashMapManager
FlashMap
instances to and from the HTTP session.logger
Constructor and Description |
---|
SessionFlashMapManager() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
getFlashMapsMutex(HttpServletRequest request)
Exposes the best available session mutex.
|
protected java.util.List<FlashMap> |
retrieveFlashMaps(HttpServletRequest request)
Retrieves saved FlashMap instances from the HTTP session, if any.
|
protected void |
updateFlashMaps(java.util.List<FlashMap> flashMaps,
HttpServletRequest request,
HttpServletResponse response)
Saves the given FlashMap instances in the HTTP session.
|
getFlashMapTimeout, getUrlPathHelper, isFlashMapForRequest, retrieveAndUpdate, saveOutputFlashMap, setFlashMapTimeout, setUrlPathHelper
@Nullable protected java.util.List<FlashMap> retrieveFlashMaps(HttpServletRequest request)
retrieveFlashMaps
in class AbstractFlashMapManager
request
- the current requestnull
if none foundprotected void updateFlashMaps(java.util.List<FlashMap> flashMaps, HttpServletRequest request, HttpServletResponse response)
updateFlashMaps
in class AbstractFlashMapManager
flashMaps
- a (potentially empty) list of FlashMap instances to saverequest
- the current requestresponse
- the current responseprotected java.lang.Object getFlashMapsMutex(HttpServletRequest request)
getFlashMapsMutex
in class AbstractFlashMapManager
request
- the current requestnull
if none applicable)WebUtils.getSessionMutex(javax.servlet.http.HttpSession)
,
HttpSessionMutexListener