Package io.quarkus.vertx.runtime.jackson
Class QuarkusJacksonJsonCodec
- java.lang.Object
-
- io.quarkus.vertx.runtime.jackson.QuarkusJacksonJsonCodec
-
- All Implemented Interfaces:
io.vertx.core.spi.json.JsonCodec
class QuarkusJacksonJsonCodec extends Object implements io.vertx.core.spi.json.JsonCodec
The functionality of this class is copied almost verbatim fromio.vertx.core.json.jackson.DatabindCodec
. The difference is that this class obtains the ObjectMapper from Arc in order to inherit the user-customized ObjectMapper.
-
-
Constructor Summary
Constructors Constructor Description QuarkusJacksonJsonCodec()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static com.fasterxml.jackson.core.JsonParser
createParser(io.vertx.core.buffer.Buffer buf)
static com.fasterxml.jackson.core.JsonParser
createParser(String str)
<T> T
fromBuffer(io.vertx.core.buffer.Buffer buf, Class<T> clazz)
static <T> T
fromParser(com.fasterxml.jackson.core.JsonParser parser, Class<T> type)
<T> T
fromString(String str, Class<T> clazz)
<T> T
fromValue(Object json, Class<T> clazz)
io.vertx.core.buffer.Buffer
toBuffer(Object object, boolean pretty)
String
toString(Object object, boolean pretty)
-
-
-
Method Detail
-
fromValue
public <T> T fromValue(Object json, Class<T> clazz)
- Specified by:
fromValue
in interfaceio.vertx.core.spi.json.JsonCodec
-
fromString
public <T> T fromString(String str, Class<T> clazz) throws io.vertx.core.json.DecodeException
- Specified by:
fromString
in interfaceio.vertx.core.spi.json.JsonCodec
- Throws:
io.vertx.core.json.DecodeException
-
fromBuffer
public <T> T fromBuffer(io.vertx.core.buffer.Buffer buf, Class<T> clazz) throws io.vertx.core.json.DecodeException
- Specified by:
fromBuffer
in interfaceio.vertx.core.spi.json.JsonCodec
- Throws:
io.vertx.core.json.DecodeException
-
createParser
public static com.fasterxml.jackson.core.JsonParser createParser(io.vertx.core.buffer.Buffer buf)
-
createParser
public static com.fasterxml.jackson.core.JsonParser createParser(String str)
-
fromParser
public static <T> T fromParser(com.fasterxml.jackson.core.JsonParser parser, Class<T> type) throws io.vertx.core.json.DecodeException
- Throws:
io.vertx.core.json.DecodeException
-
toString
public String toString(Object object, boolean pretty) throws io.vertx.core.json.EncodeException
- Specified by:
toString
in interfaceio.vertx.core.spi.json.JsonCodec
- Throws:
io.vertx.core.json.EncodeException
-
toBuffer
public io.vertx.core.buffer.Buffer toBuffer(Object object, boolean pretty) throws io.vertx.core.json.EncodeException
- Specified by:
toBuffer
in interfaceio.vertx.core.spi.json.JsonCodec
- Throws:
io.vertx.core.json.EncodeException
-
-