- Type Parameters:
From
- the encoded type
- All Superinterfaces:
Converter<From,
,Object> Decoder<From,
,Object> Encoder<Object,
,From> ReactiveConverter<From,
,Object> ReactiveDecoder<From,
,Object> ReactiveEncoder<Object,
From>
- All Known Implementing Classes:
JsonByteBufMediaTypeConverter
,JsonStringMediaTypeConverter
,NdJsonByteBufMediaTypeConverter
,NdJsonStringMediaTypeConverter
,TextByteBufMediaTypeConverter
,TextStringMediaTypeConverter
An object converter that can convert particular media types.
A typical implementation would convert objects from/to serialized data formatted according to a given media type.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canConvert
(String mediaType) Determines whether the converter can convert the specified media type.Methods inherited from interface io.inverno.mod.base.converter.ReactiveDecoder
decodeMany, decodeMany, decodeOne, decodeOne
Methods inherited from interface io.inverno.mod.base.converter.ReactiveEncoder
encodeMany, encodeMany, encodeMany, encodeOne, encodeOne, encodeOne
-
Method Details
-
canConvert
Determines whether the converter can convert the specified media type.
- Parameters:
mediaType
- a media type- Returns:
- true if the converter can convert the media type, false otherwise
-