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.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 (e.g.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.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
.Implementation ofHttpMessageConverter
that can read and write strings.