本文整理了Java中org.springframework.web.servlet.ModelAndView.wasCleared()
方法的一些代码示例,展示了ModelAndView.wasCleared()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ModelAndView.wasCleared()
方法的具体详情如下:
包路径:org.springframework.web.servlet.ModelAndView
类名称:ModelAndView
方法名:wasCleared
[英]Return whether this ModelAndView object is empty as a result of a call to #cleari.e. whether it does not hold any view and does not contain a model.
Returns false if any additional state was added to the instance after the call to #clear.
[中]返回调用#cleari后此ModelAndView对象是否为空。e、 它是否不包含任何视图和模型。
如果在调用#clear之后向实例添加了任何其他状态,则返回false。
代码示例来源:origin: spring-projects/spring-framework
@Override
public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,
@Nullable ModelAndView modelAndView) throws Exception {
this.requestInterceptor.postHandle(new DispatcherServletWebRequest(request, response),
(modelAndView != null && !modelAndView.wasCleared() ? modelAndView.getModelMap() : null));
}
代码示例来源:origin: org.springframework/spring-webmvc
@Override
public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,
@Nullable ModelAndView modelAndView) throws Exception {
this.requestInterceptor.postHandle(new DispatcherServletWebRequest(request, response),
(modelAndView != null && !modelAndView.wasCleared() ? modelAndView.getModelMap() : null));
}
代码示例来源:origin: spring-projects/spring-framework
if (mv != null && !mv.wasCleared()) {
render(mv, request, response);
if (errorView) {
代码示例来源:origin: org.springframework/spring-webmvc
if (mv != null && !mv.wasCleared()) {
render(mv, request, response);
if (errorView) {
代码示例来源:origin: apache/servicemix-bundles
@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));
}
代码示例来源:origin: apache/servicemix-bundles
if (mv != null && !mv.wasCleared()) {
render(mv, request, response);
if (errorView) {
代码示例来源:origin: org.tinygroup/org.tinygroup.springmvc
if (mv != null && !mv.wasCleared()) {
render(mv, processedRequest, response);
if (errorView) {
内容来源于网络,如有侵权,请联系作者删除!