Package org.springframework.http.converter
@NonNullApi
@NonNullFields
package org.springframework.http.converter
Provides an HttpMessageConverter abstraction to convert between Java objects and HTTP input/output messages.
-
ClassDescriptionAbstract base class for most
GenericHttpMessageConverter
implementations.Abstract base class for mostHttpMessageConverter
implementations.AbstractKotlinSerializationHttpMessageConverter<T extends kotlinx.serialization.SerialFormat>Abstract base class forHttpMessageConverter
implementations that use Kotlin serialization.Abstract base class for mostSmartHttpMessageConverter
implementations.Implementation ofHttpMessageConverter
that can read and writeBufferedImages
.Implementation ofHttpMessageConverter
that can read and write byte arrays.Implementation ofHttpMessageConverter
to read and write 'normal' HTML forms and also to write (but not read) multipart data (for example, file uploads).A specialization ofHttpMessageConverter
that can convert an HTTP request into a target object of a specified generic type and a source object of a specified generic type into an HTTP response.Thrown byHttpMessageConverter
implementations when a conversion attempt fails.Strategy interface for converting from and to HTTP requests and responses.Thrown byHttpMessageConverter
implementations when theHttpMessageConverter.read(java.lang.Class<? extends T>, org.springframework.http.HttpInputMessage)
method fails.Thrown byHttpMessageConverter
implementations when theHttpMessageConverter.write(T, org.springframework.http.MediaType, org.springframework.http.HttpOutputMessage)
method fails.KotlinSerializationBinaryHttpMessageConverter<T extends kotlinx.serialization.BinaryFormat>Abstract base class forHttpMessageConverter
implementations that defer to Kotlin binary serializers.KotlinSerializationStringHttpMessageConverter<T extends kotlinx.serialization.StringFormat>Abstract base class forHttpMessageConverter
implementations that defer to Kotlin string serializers.AnHttpMessageConverter
that usesStringHttpMessageConverter
for reading and writing content and aConversionService
for converting the String content to and from the target object type.Implementation ofHttpMessageConverter
that can read/writeResources
and supports byte range requests.Implementation ofHttpMessageConverter
that can write a singleResourceRegion
or Collections ofResourceRegions
.A specialization ofHttpMessageConverter
that can convert an HTTP request into a target object of a specifiedResolvableType
and a source object of a specifiedResolvableType
into an HTTP response with optional hints.Implementation ofHttpMessageConverter
that can read and write strings.