- All Superinterfaces:
TemplateSet
- All Known Subinterfaces:
LoginView.BytebufTemplateSet
- All Known Implementing Classes:
AbstractByteBufPublisherTemplateSet
,AbstractByteBufTemplateSet
,AbstractCompositeByteBufTemplateSet
A TemplateSet
which can render ByteBuf
.
- Since:
- 1.2
- Author:
- Jeremy Kuhn
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.inverno.mod.irt.TemplateSet
TemplateSet.IndexableRenderable<T>, TemplateSet.Renderable<T>
-
Field Summary
Fields inherited from interface io.inverno.mod.irt.TemplateSet
COMPLETED_FUTURE
-
Method Summary
Modifier and TypeMethodDescriptionstatic ByteBuf
directByteBuf
(String data, Charset charset) Creates a directByteBuf
with the specified data encoded using the specified charset.Renders a ByteBuf to the output.Methods inherited from interface io.inverno.mod.irt.TemplateSet
applyTemplate, applyTemplate, applyTemplate, applyTemplate, applyTemplate, render, render, render, template
-
Method Details
-
directByteBuf
Creates a direct
ByteBuf
with the specified data encoded using the specified charset.- Parameters:
data
- the datacharset
- the charset- Returns:
- a direct ByteBuf
-
render
Renders a ByteBuf to the output.
- Parameters:
value
- the ByteBuf to render- Returns:
- a future which completes once the value is rendered
-