| Constructor and Description |
|---|
JsonEncoder() |
| 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.
|
public byte[] encode(T object) throws EncodeException
Encoderencode in interface Encoder<T>object - the object to be encodeEncodeException - If the conversion failspublic java.lang.String contentType()
Encoderapplication/jsoncontentType in interface Encoder<T>null