Class JsonTranscoder
- java.lang.Object
-
- org.infinispan.commons.dataconversion.OneToManyTranscoder
-
- org.infinispan.server.core.dataconversion.JsonTranscoder
-
- All Implemented Interfaces:
org.infinispan.commons.dataconversion.Transcoder
public class JsonTranscoder extends org.infinispan.commons.dataconversion.OneToManyTranscoder
- Since:
- 9.2
-
-
Field Summary
Fields Modifier and Type Field Description protected static Log
logger
static String
TYPE_PROPERTY
-
Constructor Summary
Constructors Constructor Description JsonTranscoder()
JsonTranscoder(ClassLoader classLoader, org.infinispan.commons.configuration.ClassWhiteList whiteList)
JsonTranscoder(org.infinispan.commons.configuration.ClassWhiteList whiteList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
transcode(Object content, org.infinispan.commons.dataconversion.MediaType contentType, org.infinispan.commons.dataconversion.MediaType destinationType)
Transcodes content between two differentMediaType
.-
Methods inherited from class org.infinispan.commons.dataconversion.OneToManyTranscoder
getSupportedMediaTypes, supportsConversion
-
-
-
-
Field Detail
-
logger
protected static final Log logger
-
TYPE_PROPERTY
public static final String TYPE_PROPERTY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JsonTranscoder
public JsonTranscoder()
-
JsonTranscoder
public JsonTranscoder(org.infinispan.commons.configuration.ClassWhiteList whiteList)
-
JsonTranscoder
public JsonTranscoder(ClassLoader classLoader, org.infinispan.commons.configuration.ClassWhiteList whiteList)
-
-
Method Detail
-
transcode
public Object transcode(Object content, org.infinispan.commons.dataconversion.MediaType contentType, org.infinispan.commons.dataconversion.MediaType destinationType)
Description copied from interface:org.infinispan.commons.dataconversion.Transcoder
Transcodes content between two differentMediaType
.- Parameters:
content
- Content to transcode.contentType
- TheMediaType
of the content.destinationType
- The targetMediaType
to convert.- Returns:
- the transcoded content.
-
-