Interface SupportJson.JsonLibrary

    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      <T> T read​(io.netty.buffer.ByteBuf content, java.lang.reflect.Type valueType)
      Deprecated.
      Read a JSON value from the given content.
      io.netty.buffer.ByteBuf write​(io.netty.buffer.ByteBufAllocator alloc, java.lang.Object value)
      Deprecated.
      Write a JSON value into the a ByteBuf.
    • Field Detail

      • KEY

        static final java.lang.Class<SupportJson.JsonLibrary> KEY
        Deprecated.
        The key of the SupportJson.JsonLibrary used in HTTP request context properties.

        The value is com.github.fmjsjx.libnetty.http.server.middleware.SupportJson.JsonLibrary.class.

    • Method Detail

      • read

        <T> T read​(io.netty.buffer.ByteBuf content,
                   java.lang.reflect.Type valueType)
        Deprecated.
        Read a JSON value from the given content.
        Type Parameters:
        T - the type of the value to be converted to
        Parameters:
        content - a ByteBuf
        valueType - the common type of the value
        Returns:
        the converted object
      • write

        io.netty.buffer.ByteBuf write​(io.netty.buffer.ByteBufAllocator alloc,
                                      java.lang.Object value)
        Deprecated.
        Write a JSON value into the a ByteBuf.
        Parameters:
        alloc - the ByteBufAllocator allocates ByteBufs
        value - the value object
        Returns:
        a ByteBuf