HttpConverterRegistrar@Deprecated public class HttpStatusConverter extends java.lang.Object implements TypeConverter<java.lang.Number,HttpStatus>
HttpStatus objects.| Constructor and Description |
|---|
HttpStatusConverter()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<HttpStatus> |
convert(java.lang.Number object,
java.lang.Class<HttpStatus> 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<HttpStatus> convert(java.lang.Number object, java.lang.Class<HttpStatus> 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.Number,HttpStatus>object - The object typetargetType - The target type being converted tocontext - The ConversionContext