public class TemplateEngine extends TemplateEngine
Concrete implementations exist for several well-known template engines.
NOTE: This class has been automatically generated from theoriginal
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<TemplateEngine> |
__TYPE_ARG |
Constructor and Description |
---|
TemplateEngine(Object delegate) |
TemplateEngine(TemplateEngine delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
TemplateEngine |
getDelegate() |
int |
hashCode() |
boolean |
isCachingEnabled()
Returns true if the template engine caches template files.
|
static TemplateEngine |
newInstance(TemplateEngine arg) |
void |
render(RoutingContext context,
String templateFileName,
Handler<AsyncResult<Buffer>> handler)
Deprecated.
|
void |
render(RoutingContext context,
String templateDirectory,
String templateFileName,
Handler<AsyncResult<Buffer>> handler)
Deprecated.
|
Observable<Buffer> |
renderObservable(RoutingContext context,
String templateFileName)
Deprecated.
|
Observable<Buffer> |
renderObservable(RoutingContext context,
String templateDirectory,
String templateFileName)
Deprecated.
|
Single<Buffer> |
rxRender(RoutingContext context,
String templateFileName)
Deprecated.
|
Single<Buffer> |
rxRender(RoutingContext context,
String templateDirectory,
String templateFileName)
Deprecated.
|
String |
toString() |
render, render, renderObservable, renderObservable, rxRender, rxRender
public static final io.vertx.lang.rx.TypeArg<TemplateEngine> __TYPE_ARG
public TemplateEngine(TemplateEngine delegate)
public TemplateEngine(Object delegate)
public String toString()
toString
in class TemplateEngine
public boolean equals(Object o)
equals
in class TemplateEngine
public int hashCode()
hashCode
in class TemplateEngine
public TemplateEngine getDelegate()
getDelegate
in class TemplateEngine
@Deprecated public void render(RoutingContext context, String templateFileName, Handler<AsyncResult<Buffer>> handler)
context
- the routing contexttemplateFileName
- the template file name to usehandler
- the handler that will be called with a result containing the buffer or a failure.@Deprecated public Observable<Buffer> renderObservable(RoutingContext context, String templateFileName)
rxRender(io.vertx.rxjava.ext.web.RoutingContext, java.lang.String)
insteadcontext
- the routing contexttemplateFileName
- the template file name to use@Deprecated public Single<Buffer> rxRender(RoutingContext context, String templateFileName)
context
- the routing contexttemplateFileName
- the template file name to use@Deprecated public void render(RoutingContext context, String templateDirectory, String templateFileName, Handler<AsyncResult<Buffer>> handler)
NOTE if you call method directly (i.e. not using TemplateHandler
) make sure
that templateFileName is sanitized via
context
- the routing contexttemplateDirectory
- the template directory to usetemplateFileName
- the relative template file name to usehandler
- the handler that will be called with a result containing the buffer or a failure.@Deprecated public Observable<Buffer> renderObservable(RoutingContext context, String templateDirectory, String templateFileName)
rxRender(io.vertx.rxjava.ext.web.RoutingContext, java.lang.String)
instead
NOTE if you call method directly (i.e. not using TemplateHandler
) make sure
that templateFileName is sanitized via
context
- the routing contexttemplateDirectory
- the template directory to usetemplateFileName
- the relative template file name to use@Deprecated public Single<Buffer> rxRender(RoutingContext context, String templateDirectory, String templateFileName)
NOTE if you call method directly (i.e. not using TemplateHandler
) make sure
that templateFileName is sanitized via
context
- the routing contexttemplateDirectory
- the template directory to usetemplateFileName
- the relative template file name to usepublic boolean isCachingEnabled()
isCachingEnabled
in class TemplateEngine
public static TemplateEngine newInstance(TemplateEngine arg)
Copyright © 2023 Eclipse. All rights reserved.