public class TemplateHandlerImpl extends Object implements TemplateHandler
DEFAULT_CONTENT_TYPE, DEFAULT_INDEX_TEMPLATE, DEFAULT_TEMPLATE_DIRECTORY| Constructor and Description |
|---|
TemplateHandlerImpl(TemplateEngine engine,
String templateDirectory,
String contentType) |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(RoutingContext context)
Something has happened, so handle it.
|
TemplateHandler |
setIndexTemplate(String indexTemplate)
Set the index template
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, createpublic TemplateHandlerImpl(TemplateEngine engine, String templateDirectory, String contentType)
public void handle(RoutingContext context)
Handlerhandle in interface Handler<RoutingContext>context - the event to handlepublic TemplateHandler setIndexTemplate(String indexTemplate)
TemplateHandlersetIndexTemplate in interface TemplateHandlerindexTemplate - the index templateCopyright © 2020. All rights reserved.