Class OneToManyTranscoder
- java.lang.Object
-
- org.infinispan.commons.dataconversion.OneToManyTranscoder
-
- All Implemented Interfaces:
Transcoder
- Direct Known Subclasses:
JBossMarshallingTranscoder,JsonTranscoder,TranscoderMarshallerAdapter,XMLTranscoder
public abstract class OneToManyTranscoder extends Object implements Transcoder
Base class forTranscoderthat 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()booleansupportsConversion(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:
getSupportedMediaTypesin interfaceTranscoder- Returns:
- all the
MediaTypehandled by this Transcoder.
-
supportsConversion
public boolean supportsConversion(MediaType mediaType, MediaType other)
- Specified by:
supportsConversionin interfaceTranscoder- Returns:
trueif the transcoder supports the conversion between the suppliedMediaTypes.
-
-