Class OneToManyTranscoder

    • Field Detail

      • mainType

        protected final MediaType mainType
      • supportedTypes

        protected final Set<MediaType> supportedTypes
    • Constructor Detail

      • OneToManyTranscoder

        public OneToManyTranscoder​(MediaType mainType,
                                   MediaType... supportedConversions)
    • Method Detail

      • getSupportedMediaTypes

        public Set<MediaType> getSupportedMediaTypes()
        Returns:
        all the MediaType handled by this Transcoder.
      • supportsConversion

        public boolean supportsConversion​(MediaType mediaType,
                                          MediaType other)
        Returns:
        true if the transcoder supports the conversion between the supplied MediaTypes.