Package io.micronaut.http.codec
Class DefaultMediaTypeCodecRegistry
java.lang.Object
io.micronaut.http.codec.DefaultMediaTypeCodecRegistry
- All Implemented Interfaces:
MediaTypeCodecRegistry
Registry of
MediaTypeCodec
instances.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Method Summary
Modifier and TypeMethodDescriptionFind a codec for the given media type.Find a codec for the given media type and target type.
-
Method Details
-
findCodec
Description copied from interface:MediaTypeCodecRegistry
Find a codec for the given media type.- Specified by:
findCodec
in interfaceMediaTypeCodecRegistry
- Parameters:
mediaType
- TheMediaType
- Returns:
- The codec
-
findCodec
Description copied from interface:MediaTypeCodecRegistry
Find a codec for the given media type and target type.- Specified by:
findCodec
in interfaceMediaTypeCodecRegistry
- Parameters:
mediaType
- TheMediaType
type
- The type- Returns:
- The codec
-
getCodecs
- Specified by:
getCodecs
in interfaceMediaTypeCodecRegistry
- Returns:
- The available codecs
-