public class TemplateHandler extends Object implements Handler<RoutingContext>
original non RX-ified interface using Vert.x codegen.| Constructor and Description |
|---|
TemplateHandler(TemplateHandler delegate) |
| Modifier and Type | Method and Description |
|---|---|
static TemplateHandler |
create(TemplateEngine engine)
Create a handler
|
static TemplateHandler |
create(TemplateEngine engine,
String templateDirectory,
String contentType)
Create a handler
|
Object |
getDelegate() |
void |
handle(RoutingContext arg0)
Something has happened, so handle it.
|
static TemplateHandler |
newInstance(TemplateHandler arg) |
public TemplateHandler(TemplateHandler delegate)
public Object getDelegate()
public void handle(RoutingContext arg0)
Handlerhandle in interface Handler<RoutingContext>arg0 - the event to handlepublic static TemplateHandler create(TemplateEngine engine)
engine - the template enginepublic static TemplateHandler create(TemplateEngine engine, String templateDirectory, String contentType)
engine - the template enginetemplateDirectory - the template directory where templates will be looked forcontentType - the content type header to be used in the responsepublic static TemplateHandler newInstance(TemplateHandler arg)
Copyright © 2015. All rights reserved.