Class ProtostreamTranscoder
java.lang.Object
org.infinispan.commons.dataconversion.AbstractTranscoder
org.infinispan.commons.dataconversion.OneToManyTranscoder
org.infinispan.encoding.ProtostreamTranscoder
- All Implemented Interfaces:
Transcoder
Performs conversions between application/x-protostream and commons formats.
When converting to application/x-protostream, it will produce payloads
with WrappedMessage by default, unless the param
wrapped is supplied in the destination MediaType with value false
Converting back to application/x-java-object requires either a payload that is
a WrappedMessage or an unwrapped payload plus the
type of the java object to convert to, specified using the type parameter in
the application/x-java-object MediaType.
- Since:
- 10.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final org.infinispan.util.logging.Logstatic final StringFields inherited from class OneToManyTranscoder
mainType, supportedTypes -
Constructor Summary
ConstructorsConstructorDescriptionProtostreamTranscoder(org.infinispan.marshall.protostream.impl.SerializationContextRegistry ctxRegistry, ClassLoader classLoader) -
Method Summary
Modifier and TypeMethodDescriptiondoTranscode(Object content, MediaType contentType, MediaType destinationType) Methods inherited from class OneToManyTranscoder
getSupportedMediaTypes, supportsConversionMethods inherited from class AbstractTranscoder
decodeContent, encodeContent, transcodeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Transcoder
supports
-
Field Details
-
WRAPPED_PARAM
- See Also:
-
logger
protected static final org.infinispan.util.logging.Log logger
-
-
Constructor Details
-
ProtostreamTranscoder
public ProtostreamTranscoder(org.infinispan.marshall.protostream.impl.SerializationContextRegistry ctxRegistry, ClassLoader classLoader)
-
-
Method Details
-
doTranscode
- Specified by:
doTranscodein classAbstractTranscoder
-