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
-
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:MediaTypeCodecRegistryFind a codec for the given media type.- Specified by:
findCodecin interfaceMediaTypeCodecRegistry- Parameters:
mediaType- TheMediaType- Returns:
- The codec
-
findCodec
Description copied from interface:MediaTypeCodecRegistryFind a codec for the given media type and target type.- Specified by:
findCodecin interfaceMediaTypeCodecRegistry- Parameters:
mediaType- TheMediaTypetype- The type- Returns:
- The codec
-
getCodecs
- Specified by:
getCodecsin interfaceMediaTypeCodecRegistry- Returns:
- The available codecs
-