public abstract class TemplateEngine extends Object
| Constructor and Description |
|---|
TemplateEngine() |
| Modifier and Type | Method and Description |
|---|---|
ModelAndView |
modelAndView(Object model,
String viewName)
Creates a new ModelAndView object with given arguments.
|
abstract String |
render(ModelAndView modelAndView)
Method called to render the output that is sent to client.
|
String |
render(Object object)
Renders the object
|
public String render(Object object)
object - the objectpublic ModelAndView modelAndView(Object model, String viewName)
model - object.viewName - to be rendered.public abstract String render(ModelAndView modelAndView)
modelAndView - object where object (mostly a POJO) and the name of the view to render are set.Copyright © 2019. All rights reserved.