|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.serializer.AbstractContentTypeConverter<com.fasterxml.jackson.databind.JsonNode,byte[]> org.axonframework.serializer.json.JsonNodeToByteArrayConverter
public class JsonNodeToByteArrayConverter
ContentTypeConverter implementation that converts a JsonNode object into a byte[]. The byte[] will contain the UTF8 encoded JSON string.
Constructor Summary | |
---|---|
JsonNodeToByteArrayConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Initialize the converter, using given objectMapper to convert the JSonNode into bytes. |
Method Summary | |
---|---|
byte[] |
convert(com.fasterxml.jackson.databind.JsonNode original)
Converts the given object into another. |
Class<com.fasterxml.jackson.databind.JsonNode> |
expectedSourceType()
The expected type of input data. |
Class<byte[]> |
targetType()
The returned type of IntermediateRepresentation |
Methods inherited from class org.axonframework.serializer.AbstractContentTypeConverter |
---|
convert |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JsonNodeToByteArrayConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
objectMapper
to convert the JSonNode into bytes. Typically,
this would be the objectMapper used by the Serializer that serializes objects into JsonNode.
objectMapper
- The objectMapper to serialize the JsonNode with.Method Detail |
---|
public Class<com.fasterxml.jackson.databind.JsonNode> expectedSourceType()
ContentTypeConverter
public Class<byte[]> targetType()
ContentTypeConverter
public byte[] convert(com.fasterxml.jackson.databind.JsonNode original)
ContentTypeConverter
SerializedObject
instance.
original
- the value to convert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |