Code example for ModelAndView

Methods: getModelMapwasCleared

0
	@Override 
	public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) 
			throws Exception { 
 
		this.requestInterceptor.postHandle(new DispatcherServletWebRequest(request, response), 
				(modelAndView != null && !modelAndView.wasCleared() ? modelAndView.getModelMap() : null)); 
	} 
 
	@Override 
	public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) 
			throws Exception { 
 
		this.requestInterceptor.afterCompletion(new DispatcherServletWebRequest(request, response), ex); 
	} 
 
	@Override 
	public void afterConcurrentHandlingStarted(HttpServletRequest request, HttpServletResponse response, Object handler) { 
		if (this.requestInterceptor instanceof AsyncWebRequestInterceptor) { 
			AsyncWebRequestInterceptor asyncInterceptor = (AsyncWebRequestInterceptor) this.requestInterceptor; 
			DispatcherServletWebRequest webRequest = new DispatcherServletWebRequest(request, response);