Package org.infinispan.encoding
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
Modifier and TypeFieldDescriptionprotected static final org.infinispan.util.logging.Log
static final String
Fields inherited from class org.infinispan.commons.dataconversion.OneToManyTranscoder
mainType, supportedTypes
-
Constructor Summary
ConstructorDescriptionProtostreamTranscoder
(org.infinispan.marshall.protostream.impl.SerializationContextRegistry ctxRegistry, ClassLoader classLoader) -
Method Summary
Modifier and TypeMethodDescriptiondoTranscode
(Object content, MediaType contentType, MediaType destinationType) Methods inherited from class org.infinispan.commons.dataconversion.OneToManyTranscoder
getSupportedMediaTypes, supportsConversion
Methods inherited from class org.infinispan.commons.dataconversion.AbstractTranscoder
decodeContent, encodeContent, transcode
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.infinispan.commons.dataconversion.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:
doTranscode
in classAbstractTranscoder
-