public class HttpMessageEncoder extends Object implements MessageEncoder
TO_STRING
Constructor and Description |
---|
HttpMessageEncoder() |
Modifier and Type | Method and Description |
---|---|
HttpMessageEncoder |
add(MediaType type,
MessageEncoder encoder) |
byte[] |
encode(Context ctx,
Object value)
MessageEncoder a value into a byte array or
null if given object isn't supported it. |
public HttpMessageEncoder add(MediaType type, 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 © 2022. All rights reserved.