- All Known Subinterfaces:
TemplateEngine
public interface MessageEncoder
Render a route output as byte array.
- Since:
- 2.0.0
- Author:
- edgar
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionMessageEncoder a value into a byte array ornull
if given object isn't supported it.
-
Field Details
-
TO_STRING
To string renderer.
-
-
Method Details
-
encode
MessageEncoder a value into a byte array ornull
if given object isn't supported it.- Parameters:
ctx
- Web context.value
- Value to render.- Returns:
- Value as byte array or
null
if given object isn't supported it. - Throws:
Exception
- If something goes wrong.
-