HttpConverterRegistrar@Deprecated public class MediaTypeConverter extends java.lang.Object implements TypeConverter<java.lang.CharSequence,MediaType>
MediaType.| Constructor and Description |
|---|
MediaTypeConverter()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<MediaType> |
convert(java.lang.CharSequence object,
java.lang.Class<MediaType> targetType,
ConversionContext context)
Deprecated.
Converts from the given source object type to the target type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvert, ofpublic java.util.Optional<MediaType> convert(java.lang.CharSequence object, java.lang.Class<MediaType> targetType, ConversionContext context)
TypeConverterOptional.empty()
in case the object is not convertible by catching any necessary exceptions and failing gracefully.convert in interface TypeConverter<java.lang.CharSequence,MediaType>object - The object typetargetType - The target type being converted tocontext - The ConversionContext