@Produces(value="text/html") @Singleton public class VelocityViewsRenderer extends Object implements ViewsRenderer
| Modifier and Type | Field and Description | 
|---|---|
| protected String | folder | 
| protected VelocityViewsRendererConfiguration | velocityConfiguration | 
| protected org.apache.velocity.app.VelocityEngine | velocityEngine | 
| protected ViewsConfiguration | viewsConfiguration | 
EXTENSION_SEPARATOR, FILE_SEPARATOR| Modifier and Type | Method and Description | 
|---|---|
| boolean | exists(String viewName) | 
| Writable | render(String view,
      Object data) | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmodelOf, normalizeFile, normalizeFolder, renderprotected final org.apache.velocity.app.VelocityEngine velocityEngine
protected final ViewsConfiguration viewsConfiguration
protected final VelocityViewsRendererConfiguration velocityConfiguration
protected final String folder
@Nonnull public Writable render(@Nonnull String view, @Nullable Object data)
render in interface ViewsRendererview - view name to be renderdata - response body to render it with a viewpublic boolean exists(@Nonnull String viewName)
exists in interface ViewsRendererviewName - view name to be render