Class OneToManyTranscoder
- java.lang.Object
-
- org.infinispan.commons.dataconversion.OneToManyTranscoder
-
- All Implemented Interfaces:
Transcoder
- Direct Known Subclasses:
BinaryTranscoder
,JBossMarshallingTranscoder
,JsonTranscoder
,ProtostreamTranscoder
,TranscoderMarshallerAdapter
,XMLTranscoder
public abstract class OneToManyTranscoder extends java.lang.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 java.util.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 java.util.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
-
-
-
-
Field Detail
-
supportedTypes
protected final java.util.Set<MediaType> supportedTypes
-
-
Method Detail
-
getSupportedMediaTypes
public java.util.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 supplied
MediaType
.
-
-