public class WebSocketEncoder extends Object implements MessageEncoder
TO_STRING
Constructor and Description |
---|
WebSocketEncoder(List<MessageEncoder> encoderList,
List<TemplateEngine> templateEngineList) |
Modifier and Type | Method and Description |
---|---|
byte[] |
encode(Context ctx,
Object value)
MessageEncoder a value into a byte array or
null if given object isn't supported it. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept
public WebSocketEncoder(List<MessageEncoder> encoderList, List<TemplateEngine> templateEngineList)
@Nonnull public byte[] encode(@Nonnull Context ctx, @Nonnull Object value) throws Exception
MessageEncoder
null
if given object isn't supported it.encode
in interface MessageEncoder
ctx
- Web context.value
- Value to render.null
if given object isn't supported it.Exception
- If something goes wrong.Copyright © 2019. All rights reserved.