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.JsonParsercreateParser(io.vertx.core.buffer.Buffer buf)static com.fasterxml.jackson.core.JsonParsercreateParser(String str)<T> TfromBuffer(io.vertx.core.buffer.Buffer buf, Class<T> clazz)static <T> TfromParser(com.fasterxml.jackson.core.JsonParser parser, Class<T> type)<T> TfromString(String str, Class<T> clazz)<T> TfromValue(Object json, Class<T> clazz)io.vertx.core.buffer.BuffertoBuffer(Object object, boolean pretty)StringtoString(Object object, boolean pretty)
-
-
-
Method Detail
-
fromValue
public <T> T fromValue(Object json, Class<T> clazz)
- Specified by:
fromValuein interfaceio.vertx.core.spi.json.JsonCodec
-
fromString
public <T> T fromString(String str, Class<T> clazz) throws io.vertx.core.json.DecodeException
- Specified by:
fromStringin 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:
fromBufferin 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:
toStringin 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:
toBufferin interfaceio.vertx.core.spi.json.JsonCodec- Throws:
io.vertx.core.json.EncodeException
-
-