Package org.infinispan.encoding.impl
Class TwoStepTranscoder
java.lang.Object
org.infinispan.commons.dataconversion.AbstractTranscoder
org.infinispan.encoding.impl.TwoStepTranscoder
- All Implemented Interfaces:
Transcoder
Performs conversions where there is no direct transcoder, but there are two transcoders available:
- one from source media type to application/x-java-object
- one from application/x-java-object to the destination media type
- Since:
- 11.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoTranscode
(Object content, MediaType contentType, MediaType destinationType) boolean
supportsConversion
(MediaType mediaType, MediaType other) 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
-
Constructor Details
-
TwoStepTranscoder
-
-
Method Details
-
doTranscode
- Specified by:
doTranscode
in classAbstractTranscoder
-
getSupportedMediaTypes
- Returns:
- all the
MediaType
handled by this Transcoder.
-
supportsConversion
- Returns:
true
if the transcoder supports the conversion between the suppliedMediaType
s.
-