Package org.infinispan.encoding
Class ProtostreamTranscoder
- java.lang.Object
-
- org.infinispan.commons.dataconversion.OneToManyTranscoder
-
- org.infinispan.encoding.ProtostreamTranscoder
-
- All Implemented Interfaces:
org.infinispan.commons.dataconversion.Transcoder
public class ProtostreamTranscoder extends org.infinispan.commons.dataconversion.OneToManyTranscoderPerforms conversions between application/x-protostream and commons formats.
When converting to application/x-protostream, it will produce payloads with
WrappedMessageby default, unless the param wrapped is supplied in the destinationMediaTypewith value falseConverting back to application/x-java-object requires either a payload that is a
WrappedMessageor an unwrapped payload plus the type of the java object to convert to, specified using the type parameter in the application/x-java-objectMediaType.- Since:
- 10.0
-
-
Field Summary
Fields Modifier and Type Field Description protected static Logloggerstatic StringWRAPPED_PARAM
-
Constructor Summary
Constructors Constructor Description ProtostreamTranscoder(SerializationContextRegistry ctxRegistry, ClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objecttranscode(Object content, org.infinispan.commons.dataconversion.MediaType contentType, org.infinispan.commons.dataconversion.MediaType destinationType)-
Methods inherited from class org.infinispan.commons.dataconversion.OneToManyTranscoder
getSupportedMediaTypes, supportsConversion
-
-
-
-
Field Detail
-
WRAPPED_PARAM
public static final String WRAPPED_PARAM
- See Also:
- Constant Field Values
-
logger
protected static final Log logger
-
-
Constructor Detail
-
ProtostreamTranscoder
public ProtostreamTranscoder(SerializationContextRegistry ctxRegistry, ClassLoader classLoader)
-
-