public abstract class TemplateViewRouteImpl extends RouteImpl
Modifier | Constructor and Description |
---|---|
protected |
TemplateViewRouteImpl(String path,
String acceptType)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static TemplateViewRouteImpl |
create(String path,
String acceptType,
TemplateViewRoute route,
TemplateEngine engine)
factory method
|
static TemplateViewRouteImpl |
create(String path,
TemplateViewRoute route,
TemplateEngine engine)
factory method
|
ModelAndView |
modelAndView(Object model,
String viewName)
Creates a new ModelAndView object with given arguments.
|
abstract Object |
render(ModelAndView modelAndView)
Method called to render the output that is sent to client.
|
Object |
render(Object object)
This method should render the given element into something that can be send through Response element.
|
delegate, getAcceptType, handle
public static TemplateViewRouteImpl create(String path, TemplateViewRoute route, TemplateEngine engine)
path
- the pathroute
- the routeengine
- the enginepublic static TemplateViewRouteImpl create(String path, String acceptType, TemplateViewRoute route, TemplateEngine engine)
path
- the pathacceptType
- the accept typeroute
- the routeengine
- the enginepublic Object render(Object object)
RouteImpl
public ModelAndView modelAndView(Object model, String viewName)
model
- object.viewName
- t be rendered.public abstract Object render(ModelAndView modelAndView)
modelAndView
- object where object (mostly a POJO) and the name of the view to render are set.Copyright © 2016. All rights reserved.