Class QuarkusJacksonJsonCodec

java.lang.Object
io.resys.thena.jackson.QuarkusJacksonJsonCodec
All Implemented Interfaces:
io.vertx.core.spi.json.JsonCodec

public class QuarkusJacksonJsonCodec extends Object implements io.vertx.core.spi.json.JsonCodec
Same as io.quarkus.vertx.runtime.jackson.QuarkusJacksonJsonCodec + additional modules
  • Constructor Details

    • QuarkusJacksonJsonCodec

      public QuarkusJacksonJsonCodec()
  • Method Details

    • fromValue

      public <T> T fromValue(Object json, Class<T> clazz)
      Specified by:
      fromValue in interface io.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 interface io.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 interface io.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 interface io.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 interface io.vertx.core.spi.json.JsonCodec
      Throws:
      io.vertx.core.json.EncodeException
    • mapper

      public static com.fasterxml.jackson.databind.ObjectMapper mapper()