MessageConverter that can read and write JSON
using the JSON Binding API.
jakarta.json.bind.Jsonb , jakarta.json.bind.JsonbBuilder , setJsonb
| Access | Constructor and Description |
|---|---|
| public | |
| public | JsonbMessageConverter(JsonbConfig
the config)JsonbConfig for the underlying delegateConstruct a new |
| public | JsonbMessageConverter(Jsonb
the Jsonb instance to use jsonb)Construct a new |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | fromJson(Reader reader, Type resolvedType)
Implements abstract org.
|
| protected Object | fromJson(String payload, Type resolvedType)
Implements abstract org.
|
| public Jsonb | |
| public void | |
| protected void | toJson(Object payload, Type resolvedType, Writer writer)
Implements abstract org.
|
| protected String | toJson(Object payload, Type resolvedType)
Implements abstract org.
|
| jsonb | back to summary |
|---|---|
| private Jsonb jsonb | |
| JsonbMessageConverter | back to summary |
|---|---|
| public JsonbMessageConverter() Construct a new | |
| JsonbMessageConverter | back to summary |
|---|---|
| public JsonbMessageConverter(JsonbConfig config) Construct a new
| |
| JsonbMessageConverter | back to summary |
|---|---|
| public JsonbMessageConverter(Jsonb jsonb) Construct a new
| |
| fromJson | back to summary |
|---|---|
| protected Object fromJson(Reader reader, Type resolvedType) Implements abstract org.
| |
| fromJson | back to summary |
|---|---|
| protected Object fromJson(String payload, Type resolvedType) Implements abstract org.
| |
| getJsonb | back to summary |
|---|---|
| public Jsonb getJsonb() Return the configured | |
| setJsonb | back to summary |
|---|---|
| public void setJsonb(Jsonb jsonb) Set the Setting a custom-configured | |
| toJson | back to summary |
|---|---|
| protected void toJson(Object payload, Type resolvedType, Writer writer) Implements abstract org.
| |
| toJson | back to summary |
|---|---|
| protected String toJson(Object payload, Type resolvedType) Implements abstract org.
| |