-
- All Implemented Interfaces:
public final class MediaTypeDecodersContainer for MediaTypeDecoders that allows registering and locating decoders for specific media types.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMediaTypeDecoders.BuilderBuilder for MediaTypeDecoders.
public classMediaTypeDecoders.Companion
-
Constructor Summary
Constructors Constructor Description MediaTypeDecoders(Map<MediaType, MediaTypeDecoder> registered)
-
Method Summary
Modifier and Type Method Description final Booleansupports(MediaType mediaType)Check if the given media type has a decoder registered. final MediaTypeDecoderfind(MediaType mediaType)Locates a compatible decoder for the given media type. -
-
Constructor Detail
-
MediaTypeDecoders
MediaTypeDecoders(Map<MediaType, MediaTypeDecoder> registered)
-
-
Method Detail
-
supports
final Boolean supports(MediaType mediaType)
Check if the given media type has a decoder registered.
-
find
final MediaTypeDecoder find(MediaType mediaType)
Locates a compatible decoder for the given media type.
- Parameters:
mediaType- Media type to locate decoder for.
-
-
-
-