public class ModelAndView
extends java.lang.Object
Constructor and Description |
---|
ModelAndView() |
ModelAndView(java.lang.String viewName) |
ModelAndView(java.lang.String viewName,
java.util.Map<?,?> model) |
ModelAndView(java.lang.String viewName,
java.lang.String modelName,
java.lang.Object modelObject) |
Modifier and Type | Method and Description |
---|---|
ModelAndView |
addAllObjects(java.util.Map<?,?> modelMap) |
ModelAndView |
addJsonEncodedObject(java.lang.String attributeName,
java.lang.Object attributeValue) |
ModelAndView |
addObject(java.lang.String attributeName,
java.lang.Object attributeValue) |
void |
clear() |
java.util.Map<?,?> |
getModel() |
protected java.util.Map<?,?> |
getModelInternal() |
ModelMap |
getModelMap() |
java.lang.String |
getViewName() |
boolean |
hasView() |
boolean |
isEmpty() |
void |
setViewName(java.lang.String viewName) |
java.lang.String |
toString() |
boolean |
wasCleared() |
public ModelAndView()
public ModelAndView(java.lang.String viewName)
public ModelAndView(java.lang.String viewName, java.util.Map<?,?> model)
public ModelAndView(java.lang.String viewName, java.lang.String modelName, java.lang.Object modelObject)
public void setViewName(java.lang.String viewName)
public java.lang.String getViewName()
public boolean hasView()
protected java.util.Map<?,?> getModelInternal()
public ModelMap getModelMap()
public java.util.Map<?,?> getModel()
public ModelAndView addObject(java.lang.String attributeName, java.lang.Object attributeValue)
public ModelAndView addJsonEncodedObject(java.lang.String attributeName, java.lang.Object attributeValue) throws java.io.IOException
java.io.IOException
public ModelAndView addAllObjects(java.util.Map<?,?> modelMap)
public void clear()
public boolean isEmpty()
public boolean wasCleared()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2003, 2014, Oracle and/or its affiliates. All rights reserved.