Top Description Interfaces Classes
module spring.web

Package org.springframework.http.converter

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

Provides an HttpMessageConverter abstraction to convert between Java objects and HTTP input/output messages.

Interface Summary

Modifier and TypeInterface and Description
public interface
GenericHttpMessageConverter<
the converted object type
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.

public interface
HttpMessageConverter<
the converted object type
T
>

Strategy interface for converting from and to HTTP requests and responses.

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractGenericHttpMessageConverter<
the converted object type
T
>

Abstract base class for most GenericHttpMessageConverter implementations.

public abstract class
AbstractHttpMessageConverter<
the converted object type
T
>

Abstract base class for most HttpMessageConverter implementations.

public abstract class
AbstractKotlinSerializationHttpMessageConverter<
the type of SerialFormat
T extends kotlinx.serialization.SerialFormat
>

Abstract base class for HttpMessageConverter implementations that use Kotlin serialization.

public class
BufferedImageHttpMessageConverter

Implementation of HttpMessageConverter that can read and write BufferedImages.

public class
ByteArrayHttpMessageConverter

Implementation of HttpMessageConverter that can read and write byte arrays.

public class
FormHttpMessageConverter

Implementation of HttpMessageConverter to read and write 'normal' HTML forms and also to write (but not read) multipart data (e.g. file uploads).

public class
HttpMessageConversionException

Thrown by HttpMessageConverter implementations when a conversion attempt fails.

public class
HttpMessageNotReadableException

Thrown by HttpMessageConverter implementations when the HttpMessageConverter#read method fails.

public class
public abstract class
KotlinSerializationBinaryHttpMessageConverter<
the type of BinaryFormat
T extends kotlinx.serialization.BinaryFormat
>

Abstract base class for HttpMessageConverter implementations that defer to Kotlin binary serializers.

public abstract class
KotlinSerializationStringHttpMessageConverter<
the type of StringFormat
T extends kotlinx.serialization.StringFormat
>

Abstract base class for HttpMessageConverter implementations that defer to Kotlin string serializers.

public class
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.

public class
ResourceHttpMessageConverter

Implementation of HttpMessageConverter that can read/write Resources and supports byte range requests.

public class
ResourceRegionHttpMessageConverter

Implementation of HttpMessageConverter that can write a single ResourceRegion or Collections of ResourceRegions.

public class
StringHttpMessageConverter

Implementation of HttpMessageConverter that can read and write strings.