Class OneToManyTranscoder
- java.lang.Object
-
- org.infinispan.commons.dataconversion.OneToManyTranscoder
-
- All Implemented Interfaces:
Transcoder
- Direct Known Subclasses:
TranscoderMarshallerAdapter
public abstract class OneToManyTranscoder extends Object implements Transcoder
Base class forTranscoder
that converts between a single format and multiple other formats and back.
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<MediaType>
supportedTypes
-
Constructor Summary
Constructors Constructor Description OneToManyTranscoder(MediaType mainType, MediaType... supportedConversions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<MediaType>
getSupportedMediaTypes()
boolean
supportsConversion(MediaType mediaType, MediaType other)
-
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, transcode
-
-
-
-
Method Detail
-
getSupportedMediaTypes
public Set<MediaType> getSupportedMediaTypes()
- Specified by:
getSupportedMediaTypes
in interfaceTranscoder
- Returns:
- all the
MediaType
handled by this Transcoder.
-
supportsConversion
public boolean supportsConversion(MediaType mediaType, MediaType other)
- Specified by:
supportsConversion
in interfaceTranscoder
- Returns:
true
if the transcoder supports the conversion between the suppliedMediaType
s.
-
-