public class HttpMessageEncoder extends Object implements MessageEncoder
TO_STRING
Constructor and Description |
---|
HttpMessageEncoder() |
Modifier and Type | Method and Description |
---|---|
HttpMessageEncoder |
add(MessageEncoder encoder) |
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 HttpMessageEncoder add(MessageEncoder encoder)
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 © 2020. All rights reserved.