Package io.bootique.mvc
Class AbstractView
- java.lang.Object
-
- io.bootique.mvc.AbstractView
-
public abstract class AbstractView extends Object
A superclass of MVC views. It contains a name of the view template, that is resolved outside of the view. AbstractView (or rather its concrete subclass) is used as a root context for resolving the template. So subclasses would normally define getters that allow to access the underlying model objects.
-
-
Field Summary
Fields Modifier and Type Field Description protected Charsetencodingprotected StringtemplateName
-
Constructor Summary
Constructors Constructor Description AbstractView(String templateName)AbstractView(String templateName, Charset encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CharsetgetEncoding()StringgetTemplateName()
-