public abstract class TemplateViewRouteImpl extends RouteImpl
| Modifier | Constructor and Description |
|---|---|
protected |
TemplateViewRouteImpl(String path,
String acceptType,
TemplateViewRoute route)
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.
|
create, create, delegate, getAcceptType, getPath, handle, withPrefixprotected TemplateViewRouteImpl(String path, String acceptType, TemplateViewRoute route)
path - the pathacceptType - the accept typeroute - 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)
RouteImplpublic 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 © 2017. All rights reserved.