public abstract class TemplateViewRoute extends Route
| Modifier | Constructor and Description |
|---|---|
protected |
TemplateViewRoute(String path) |
protected |
TemplateViewRoute(String path,
String acceptType) |
| 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)
This method should render the given element into something that can be send through Response element.
|
getAcceptType, handlehalt, halt, halt, haltprotected TemplateViewRoute(String path)
public String render(Object object)
Routepublic ModelAndView modelAndView(Object model, String viewName)
model - object.viewName - t 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 © 2013. All Rights Reserved.