GsonMessageConverter, JsonbMessageConverter, fromJson(Reader, Type), fromJson(String, Type), toJson(Object, Type), toJson(Object, Type, Writer)
| Modifier and Type | Field and Description |
|---|---|
| private static final Charset |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | convertFromInternal(Message<?>
the input message message, Class<?> the target class for the conversion targetClass, Object conversionHint)Overrides org. |
| protected Object | convertToInternal(Object
the Object to convert payload, MessageHeaders optional headers for the message (may be headers, Object conversionHint)null)Overrides org. |
| protected abstract Object | |
| protected abstract Object | |
| private Charset | |
| private Reader | |
| private Writer | |
| protected boolean | supports(Class<?>
the class to test for support clazz)Implements abstract org. |
| protected abstract void | |
| protected abstract String |
| DEFAULT_CHARSET | back to summary |
|---|---|
| private static final Charset DEFAULT_CHARSET | |
| AbstractJsonMessageConverter | back to summary |
|---|---|
| protected AbstractJsonMessageConverter() | |
| convertFromInternal | back to summary |
|---|---|
| protected Object convertFromInternal(Message<?> message, Class<?> targetClass, Object conversionHint) Overrides org. Doc from org. Convert the message payload from serialized form to an Object.
| |
| convertToInternal | back to summary |
|---|---|
| protected Object convertToInternal(Object payload, MessageHeaders headers, Object conversionHint) Overrides org. Doc from org. Convert the payload object to serialized form.
| |
| fromJson | back to summary |
|---|---|
| protected abstract Object fromJson(Reader reader, Type resolvedType) | |
| fromJson | back to summary |
|---|---|
| protected abstract Object fromJson(String payload, Type resolvedType) | |
| getCharsetToUse | back to summary |
|---|---|
| private Charset getCharsetToUse(MessageHeaders headers) | |
| getReader | back to summary |
|---|---|
| private Reader getReader(byte[] payload, MessageHeaders headers) | |
| getWriter | back to summary |
|---|---|
| private Writer getWriter(ByteArrayOutputStream out, MessageHeaders headers) | |
| supports | back to summary |
|---|---|
| protected boolean supports(Class<?> clazz) Implements abstract org. Doc from org. Whether the given class is supported by this converter. | |
| toJson | back to summary |
|---|---|
| protected abstract void toJson(Object payload, Type resolvedType, Writer writer) | |
| toJson | back to summary |
|---|---|
| protected abstract String toJson(Object payload, Type resolvedType) | |