public class TemplateHandler extends Object implements Handler<RoutingContext>
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static TypeArg<TemplateHandler> |
__TYPE_ARG |
| 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
|
boolean |
equals(Object o) |
TemplateHandler |
getDelegate() |
void |
handle(RoutingContext arg0)
Something has happened, so handle it.
|
int |
hashCode() |
static TemplateHandler |
newInstance(TemplateHandler arg) |
TemplateHandler |
setIndexTemplate(String indexTemplate)
Set the index template
|
String |
toString() |
public static final TypeArg<TemplateHandler> __TYPE_ARG
public TemplateHandler(TemplateHandler delegate)
public TemplateHandler getDelegate()
public void handle(RoutingContext arg0)
Handlerhandle in interface Handler<RoutingContext>arg0 - the event to handlepublic TemplateHandler setIndexTemplate(String indexTemplate)
indexTemplate - the index templatepublic 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 © 2017. All rights reserved.