T - Message typepublic interface Encoder<T>
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
contentType()
Content type of converter.
|
byte[] |
encode(T object)
Encode a message object of type T into given bytes.
|
byte[] encode(T object) throws EncodeException
object - the object to be encodeEncodeException - If the conversion failsjava.lang.String contentType()
application/jsonnull