Interface SupportJson.JsonLibrary
-
- All Known Implementing Classes:
SupportJson.Jackson2JsonLibrary
- Enclosing class:
- SupportJson
@Deprecated public static interface SupportJson.JsonLibraryDeprecated.please useJsonLibraryinsteadProvides methods to support JSON features.- See Also:
SupportJson.Jackson2JsonLibrary
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Class<SupportJson.JsonLibrary>KEYDeprecated.The key of theSupportJson.JsonLibraryused in HTTP request context properties.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description <T> Tread(io.netty.buffer.ByteBuf content, java.lang.reflect.Type valueType)Deprecated.Read a JSON value from the given content.io.netty.buffer.ByteBufwrite(io.netty.buffer.ByteBufAllocator alloc, java.lang.Object value)Deprecated.Write a JSON value into the aByteBuf.
-
-
-
Field Detail
-
KEY
static final java.lang.Class<SupportJson.JsonLibrary> KEY
Deprecated.The key of theSupportJson.JsonLibraryused 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- aByteBufvalueType- 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 aByteBuf.- Parameters:
alloc- theByteBufAllocatorallocatesByteBufsvalue- the value object- Returns:
- a
ByteBuf
-
-