程序包 cn.taketoday.http.converter
@NonNullApi
@NonNullFields
package cn.taketoday.http.converter
Provides an HttpMessageConverter abstraction to convert between Java objects and HTTP input/output messages.
-
类说明Abstract base class for most
GenericHttpMessageConverterimplementations.Abstract base class for mostHttpMessageConverterimplementations.Extension ofFormHttpMessageConverter, adding support for XML and JSON-based parts.Implementation ofHttpMessageConverterthat can read and writeBufferedImages.Implementation ofHttpMessageConverterthat can read and write byte arrays.Implementation ofHttpMessageConverterto read and write 'normal' HTML forms and also to write (but not read) multipart data (e.g. file uploads).Inner class to avoid a hard dependency on the JavaMail API.Implementation ofHttpOutputMessageused to write a MIME multipart.OutputStream that neither flushes nor closes.A specialization ofHttpMessageConverterthat 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 byHttpMessageConverterimplementations when a conversion attempt fails.Strategy interface for converting from and to HTTP requests and responses.Bean used to manage theHttpMessageConverters used in application.Thrown byHttpMessageConverterimplementations when theHttpMessageConverter.read(java.lang.Class<? extends T>, cn.taketoday.http.HttpInputMessage)method fails.Thrown byHttpMessageConverterimplementations when theHttpMessageConverter.write(T, cn.taketoday.http.MediaType, cn.taketoday.http.HttpOutputMessage)method fails.AnHttpMessageConverterthat usesStringHttpMessageConverterfor reading and writing content and aConversionServicefor converting the String content to and from the target object type.Implementation ofHttpMessageConverterthat can read/writeResourcesand supports byte range requests.Implementation ofHttpMessageConverterthat can write a singleResourceRegionor Collections ofResourceRegions.Implementation ofHttpMessageConverterthat can read and write strings.