Class FreeMarkerTemplateEngine
- java.lang.Object
-
- io.vertx.reactivex.ext.web.common.template.TemplateEngine
-
- io.vertx.reactivex.ext.web.templ.freemarker.FreeMarkerTemplateEngine
-
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
public class FreeMarkerTemplateEngine extends TemplateEngine implements io.vertx.lang.rx.RxDelegate
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<FreeMarkerTemplateEngine>
__TYPE_ARG
static String
DEFAULT_TEMPLATE_EXTENSION
Default template extension
-
Constructor Summary
Constructors Constructor Description FreeMarkerTemplateEngine(FreeMarkerTemplateEngine delegate)
FreeMarkerTemplateEngine(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FreeMarkerTemplateEngine
create(Vertx vertx)
Create a template engine using defaultsstatic FreeMarkerTemplateEngine
create(Vertx vertx, String extension)
Create a template engine using defaultsboolean
equals(Object o)
FreeMarkerTemplateEngine
getDelegate()
int
hashCode()
static FreeMarkerTemplateEngine
newInstance(FreeMarkerTemplateEngine arg)
String
toString()
freemarker.template.Configuration
unwrap()
Returns the underlying engine, so further configurations or customizations may be applied ornull
when the engine cannot unwrap it.-
Methods inherited from class io.vertx.reactivex.ext.web.common.template.TemplateEngine
clearCache, newInstance, render, render, rxRender, rxRender
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<FreeMarkerTemplateEngine> __TYPE_ARG
-
DEFAULT_TEMPLATE_EXTENSION
public static final String DEFAULT_TEMPLATE_EXTENSION
Default template extension- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FreeMarkerTemplateEngine
public FreeMarkerTemplateEngine(FreeMarkerTemplateEngine delegate)
-
FreeMarkerTemplateEngine
public FreeMarkerTemplateEngine(Object delegate)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classTemplateEngine
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classTemplateEngine
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classTemplateEngine
-
getDelegate
public FreeMarkerTemplateEngine getDelegate()
- Specified by:
getDelegate
in interfaceio.vertx.lang.rx.RxDelegate
- Overrides:
getDelegate
in classTemplateEngine
-
create
public static FreeMarkerTemplateEngine create(Vertx vertx)
Create a template engine using defaults- Parameters:
vertx
-- Returns:
- the engine
-
create
public static FreeMarkerTemplateEngine create(Vertx vertx, String extension)
Create a template engine using defaults- Parameters:
vertx
-extension
-- Returns:
- the engine
-
unwrap
public freemarker.template.Configuration unwrap()
Description copied from class:TemplateEngine
Returns the underlying engine, so further configurations or customizations may be applied ornull
when the engine cannot unwrap it.- Overrides:
unwrap
in classTemplateEngine
- Returns:
- the engine instance.
-
newInstance
public static FreeMarkerTemplateEngine newInstance(FreeMarkerTemplateEngine arg)
-
-