Class 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 from io.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 Detail

      • QuarkusJacksonJsonCodec

        QuarkusJacksonJsonCodec()
    • Method Detail

      • 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