Interface MediaTypeConverter<From>

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

public interface MediaTypeConverter<From> extends ReactiveConverter<From,Object>

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 Details

    • canConvert

      boolean canConvert(String mediaType)

      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