# 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.

Related Packages
Package
Description
org.springframework.http
Contains a basic abstraction over client/server-side HTTP.
org.springframework.http.converter.cbor
Provides an HttpMessageConverter for the CBOR data format.
org.springframework.http.converter.feed
Provides HttpMessageConverter implementations for handling Atom and RSS feeds.
org.springframework.http.converter.json
Provides HttpMessageConverter implementations for handling JSON.
org.springframework.http.converter.protobuf
Provides an HttpMessageConverter implementation for handling Google Protocol Buffers.
org.springframework.http.converter.smile
Provides an HttpMessageConverter for the Smile data format ("binary JSON").
org.springframework.http.converter.support
Provides a comprehensive HttpMessageConverter variant for form handling.
org.springframework.http.converter.xml
Provides HttpMessageConverter implementations for handling XML.
org.springframework.http.converter.yaml
Provides an `HttpMessageConverter` for the YAML data format.
Class
Description
AbstractGenericHttpMessageConverter<T>
Abstract base class for most `GenericHttpMessageConverter` implementations.
AbstractHttpMessageConverter<T>
Abstract base class for most `HttpMessageConverter` implementations.
AbstractKotlinSerializationHttpMessageConverter<T extends kotlinx.serialization.SerialFormat>
Abstract base class for `HttpMessageConverter` implementations that use Kotlin serialization.
AbstractSmartHttpMessageConverter<T>
Abstract base class for most `SmartHttpMessageConverter` implementations.
BufferedImageHttpMessageConverter
Implementation of `HttpMessageConverter` that can read and write `BufferedImages`.
ByteArrayHttpMessageConverter
Implementation of `HttpMessageConverter` that can read and write byte arrays.
FormHttpMessageConverter
Implementation of `HttpMessageConverter` to read and write 'normal' HTML forms and also to write (but not read) multipart data (for example, file uploads).
GenericHttpMessageConverter<T>
A specialization of `HttpMessageConverter` 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.
HttpMessageConversionException
Thrown by `HttpMessageConverter` implementations when a conversion attempt fails.
HttpMessageConverter<T>
Strategy interface for converting from and to HTTP requests and responses.
HttpMessageNotReadableException
Thrown by `HttpMessageConverter` implementations when the `HttpMessageConverter.read(java.lang.Class<? extends T>, org.springframework.http.HttpInputMessage)` method fails.
HttpMessageNotWritableException
Thrown by `HttpMessageConverter` implementations when the `HttpMessageConverter.write(T, org.springframework.http.MediaType, org.springframework.http.HttpOutputMessage)` method fails.
KotlinSerializationBinaryHttpMessageConverter<T extends kotlinx.serialization.BinaryFormat>
Abstract base class for `HttpMessageConverter` implementations that defer to Kotlin binary serializers.
KotlinSerializationStringHttpMessageConverter<T extends kotlinx.serialization.StringFormat>
Abstract base class for `HttpMessageConverter` implementations that defer to Kotlin string serializers.
ObjectToStringHttpMessageConverter
An `HttpMessageConverter` that uses `StringHttpMessageConverter` for reading and writing content and a `ConversionService` for converting the String content to and from the target object type.
ResourceHttpMessageConverter
Implementation of `HttpMessageConverter` that can read/write `Resources` and supports byte range requests.
ResourceRegionHttpMessageConverter
Implementation of `HttpMessageConverter` that can write a single `ResourceRegion` or Collections of `ResourceRegions`.
SmartHttpMessageConverter<T>
A specialization of `HttpMessageConverter` that can convert an HTTP request into a target object of a specified `ResolvableType` and a source object of a specified `ResolvableType` into an HTTP response with optional hints.
StringHttpMessageConverter
Implementation of `HttpMessageConverter` that can read and write strings.