Uses of Interface
org.springframework.http.converter.HttpMessageConverter
Packages that use HttpMessageConverter
Package
Description
Provides an HttpMessageConverter abstraction to convert between Java objects and HTTP input/output messages.
Provides an HttpMessageConverter for the CBOR data format.
Provides HttpMessageConverter implementations for handling Atom and RSS feeds.
Provides HttpMessageConverter implementations for handling JSON.
Provides an HttpMessageConverter implementation for handling
 Google Protocol Buffers.
Provides an HttpMessageConverter for the Smile data format ("binary JSON").
Provides a comprehensive HttpMessageConverter variant for form handling.
Provides HttpMessageConverter implementations for handling XML.
Support for testing Spring MVC applications via
 
WebTestClient
 with MockMvc for server request
 handling.Contains built-in 
MockMvcBuilder implementations.Core package of the client-side web support.
Annotation-based setup for Spring MVC.
Provides the types that make up Spring's functional web framework for Servlet environments.
Classes supporting the 
org.springframework.web.servlet.function package.MVC infrastructure for annotation-based handler method processing, building on the
 
org.springframework.web.method.annotation package.- 
Uses of HttpMessageConverter in org.springframework.http.converterSubinterfaces of HttpMessageConverter in org.springframework.http.converterModifier and TypeInterfaceDescriptioninterfaceA 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.Classes in org.springframework.http.converter that implement HttpMessageConverterModifier and TypeClassDescriptionclassAbstract base class for mostGenericHttpMessageConverterimplementations.classAbstract base class for mostHttpMessageConverterimplementations.classAbstractKotlinSerializationHttpMessageConverter<T extends kotlinx.serialization.SerialFormat>Abstract base class forHttpMessageConverterimplementations that use Kotlin serialization.classImplementation ofHttpMessageConverterthat can read and writeBufferedImages.classImplementation ofHttpMessageConverterthat can read and write byte arrays.classImplementation ofHttpMessageConverterto read and write 'normal' HTML forms and also to write (but not read) multipart data (e.g.classKotlinSerializationBinaryHttpMessageConverter<T extends kotlinx.serialization.BinaryFormat>Abstract base class forHttpMessageConverterimplementations that defer to Kotlin binary serializers.classKotlinSerializationStringHttpMessageConverter<T extends kotlinx.serialization.StringFormat>Abstract base class forHttpMessageConverterimplementations that defer to Kotlin string serializers.classAnHttpMessageConverterthat usesStringHttpMessageConverterfor reading and writing content and aConversionServicefor converting the String content to and from the target object type.classImplementation ofHttpMessageConverterthat can read/writeResourcesand supports byte range requests.classImplementation ofHttpMessageConverterthat can write a singleResourceRegionor Collections ofResourceRegions.classImplementation ofHttpMessageConverterthat can read and write strings.Methods in org.springframework.http.converter that return types with arguments of type HttpMessageConverterModifier and TypeMethodDescriptionFormHttpMessageConverter.getPartConverters()Return the configured converters for MIME parts.Methods in org.springframework.http.converter with parameters of type HttpMessageConverterModifier and TypeMethodDescriptionvoidFormHttpMessageConverter.addPartConverter(HttpMessageConverter<?> partConverter) Add a message body converter.Method parameters in org.springframework.http.converter with type arguments of type HttpMessageConverterModifier and TypeMethodDescriptionvoidFormHttpMessageConverter.setPartConverters(List<HttpMessageConverter<?>> partConverters) Set the message body converters to use.
- 
Uses of HttpMessageConverter in org.springframework.http.converter.cborClasses in org.springframework.http.converter.cbor that implement HttpMessageConverterModifier and TypeClassDescriptionclassImplementation ofHttpMessageConverterthat can read and write CBOR using kotlinx.serialization.classImplementation ofHttpMessageConverterthat can read and write the CBOR data format using the dedicated Jackson 2.x extension.
- 
Uses of HttpMessageConverter in org.springframework.http.converter.feedClasses in org.springframework.http.converter.feed that implement HttpMessageConverterModifier and TypeClassDescriptionclassAbstractWireFeedHttpMessageConverter<T extends com.rometools.rome.feed.WireFeed>Abstract base class for Atom and RSS Feed message converters, using the ROME tools project.classImplementation ofHttpMessageConverterthat can read and write Atom feeds.classImplementation ofHttpMessageConverterthat can read and write RSS feeds.
- 
Uses of HttpMessageConverter in org.springframework.http.converter.jsonClasses in org.springframework.http.converter.json that implement HttpMessageConverterModifier and TypeClassDescriptionclassAbstract base class for Jackson based and content type independentHttpMessageConverterimplementations.classCommon base class for plain JSON converters, e.g.classImplementation ofHttpMessageConverterthat can read and write JSON using the Google Gson library.classImplementation ofHttpMessageConverterthat can read and write JSON using the JSON Binding API.classImplementation ofHttpMessageConverterthat can read and write JSON using kotlinx.serialization.classImplementation ofHttpMessageConverterthat can read and write JSON using Jackson 2.x'sObjectMapper.
- 
Uses of HttpMessageConverter in org.springframework.http.converter.protobufClasses in org.springframework.http.converter.protobuf that implement HttpMessageConverterModifier and TypeClassDescriptionclassImplementation ofHttpMessageConverterthat can read and write Protocol Buffers using kotlinx.serialization.classAnHttpMessageConverterthat reads and writescom.google.protobuf.Messagesusing Google Protocol Buffers.classSubclass ofProtobufHttpMessageConverterwhich enforces the use of Protobuf 3 and its official library"com.google.protobuf:protobuf-java-util"for JSON processing.
- 
Uses of HttpMessageConverter in org.springframework.http.converter.smileClasses in org.springframework.http.converter.smile that implement HttpMessageConverterModifier and TypeClassDescriptionclassImplementation ofHttpMessageConverterthat can read and write Smile data format ("binary JSON") using the dedicated Jackson 2.x extension.
- 
Uses of HttpMessageConverter in org.springframework.http.converter.supportClasses in org.springframework.http.converter.support that implement HttpMessageConverterModifier and TypeClassDescriptionclassExtension ofFormHttpMessageConverter, adding support for XML and JSON-based parts.
- 
Uses of HttpMessageConverter in org.springframework.http.converter.xmlClasses in org.springframework.http.converter.xml that implement HttpMessageConverterModifier and TypeClassDescriptionclassAbstract base class forHttpMessageConvertersthat use JAXB2.classAbstract base class forHttpMessageConvertersthat convert from/to XML.classJaxb2CollectionHttpMessageConverter<T extends Collection>AnHttpMessageConverterthat can read XML collections using JAXB2.classImplementation ofHttpMessageConverterthat can read and write XML using JAXB2.classImplementation ofHttpMessageConverterthat can read and write XML using Jackson 2.x extension component for reading and writing XML encoded data.classImplementation ofHttpMessageConverterthat can read and write XML using Spring'sMarshallerandUnmarshallerabstractions.classSourceHttpMessageConverter<T extends Source>Implementation ofHttpMessageConverterthat can read and writeSourceobjects.
- 
Uses of HttpMessageConverter in org.springframework.test.web.servlet.clientMethods in org.springframework.test.web.servlet.client with parameters of type HttpMessageConverterModifier and TypeMethodDescriptionMockMvcWebTestClient.ControllerSpec.messageConverters(HttpMessageConverter<?>... messageConverters) Set the message converters to use.
- 
Uses of HttpMessageConverter in org.springframework.test.web.servlet.setupMethods in org.springframework.test.web.servlet.setup with parameters of type HttpMessageConverterModifier and TypeMethodDescriptionStandaloneMockMvcBuilder.setMessageConverters(HttpMessageConverter<?>... messageConverters) Set the message converters to use in argument resolvers and in return value handlers, which support reading and/or writing to the body of the request and response.
- 
Uses of HttpMessageConverter in org.springframework.web.clientMethods in org.springframework.web.client that return types with arguments of type HttpMessageConverterModifier and TypeMethodDescriptionRestTemplate.getMessageConverters()Return the list of message body converters.Method parameters in org.springframework.web.client with type arguments of type HttpMessageConverterModifier and TypeMethodDescriptionvoidExtractingResponseErrorHandler.setMessageConverters(List<HttpMessageConverter<?>> messageConverters) Set the message converters to use by this extractor.voidRestTemplate.setMessageConverters(List<HttpMessageConverter<?>> messageConverters) Set the message body converters to use.Constructor parameters in org.springframework.web.client with type arguments of type HttpMessageConverterModifierConstructorDescriptionExtractingResponseErrorHandler(List<HttpMessageConverter<?>> messageConverters) Create a newExtractingResponseErrorHandlerwith the givenHttpMessageConverterinstances.HttpMessageConverterExtractor(Class<T> responseType, List<HttpMessageConverter<?>> messageConverters) Create a new instance of theHttpMessageConverterExtractorwith the given response type and message converters.HttpMessageConverterExtractor(Type responseType, List<HttpMessageConverter<?>> messageConverters) Creates a new instance of theHttpMessageConverterExtractorwith the given response type and message converters.RestTemplate(List<HttpMessageConverter<?>> messageConverters) Create a new instance of theRestTemplateusing the given list ofHttpMessageConverterto use.
- 
Uses of HttpMessageConverter in org.springframework.web.servlet.config.annotationMethods in org.springframework.web.servlet.config.annotation that return types with arguments of type HttpMessageConverterModifier and TypeMethodDescriptionprotected final List<HttpMessageConverter<?>>WebMvcConfigurationSupport.getMessageConverters()Provides access to the sharedHttpMessageConvertersused by theRequestMappingHandlerAdapterand theExceptionHandlerExceptionResolver.Method parameters in org.springframework.web.servlet.config.annotation with type arguments of type HttpMessageConverterModifier and TypeMethodDescriptionprotected final voidWebMvcConfigurationSupport.addDefaultHttpMessageConverters(List<HttpMessageConverter<?>> messageConverters) Adds a set of default HttpMessageConverter instances to the given list.protected voidDelegatingWebMvcConfiguration.configureMessageConverters(List<HttpMessageConverter<?>> converters) protected voidWebMvcConfigurationSupport.configureMessageConverters(List<HttpMessageConverter<?>> converters) Override this method to add customHttpMessageConvertersto use with theRequestMappingHandlerAdapterand theExceptionHandlerExceptionResolver.default voidWebMvcConfigurer.configureMessageConverters(List<HttpMessageConverter<?>> converters) Configure theHttpMessageConverters for reading from the request body and for writing to the response body.protected voidDelegatingWebMvcConfiguration.extendMessageConverters(List<HttpMessageConverter<?>> converters) protected voidWebMvcConfigurationSupport.extendMessageConverters(List<HttpMessageConverter<?>> converters) Override this method to extend or modify the list of converters after it has been configured.default voidWebMvcConfigurer.extendMessageConverters(List<HttpMessageConverter<?>> converters) Extend or modify the list of converters after it has been, eitherconfiguredor initialized with a default list.
- 
Uses of HttpMessageConverter in org.springframework.web.servlet.functionMethods in org.springframework.web.servlet.function that return types with arguments of type HttpMessageConverterModifier and TypeMethodDescriptionServerRequest.messageConverters()Get the readers used to convert the body of this request.ServerResponse.Context.messageConverters()Return theHttpMessageConvertersto be used for response body conversion.Method parameters in org.springframework.web.servlet.function with type arguments of type HttpMessageConverterModifier and TypeMethodDescriptionstatic ServerRequestServerRequest.create(HttpServletRequest servletRequest, List<HttpMessageConverter<?>> messageReaders) Create a newServerRequestbased on the givenHttpServletRequestand message converters.
- 
Uses of HttpMessageConverter in org.springframework.web.servlet.function.supportMethod parameters in org.springframework.web.servlet.function.support with type arguments of type HttpMessageConverterModifier and TypeMethodDescriptionvoidRouterFunctionMapping.setMessageConverters(List<HttpMessageConverter<?>> messageConverters) Set the message body converters to use.
- 
Uses of HttpMessageConverter in org.springframework.web.servlet.mvc.method.annotationFields in org.springframework.web.servlet.mvc.method.annotation with type parameters of type HttpMessageConverterModifier and TypeFieldDescriptionprotected final List<HttpMessageConverter<?>>AbstractMessageConverterMethodArgumentResolver.messageConvertersMethods in org.springframework.web.servlet.mvc.method.annotation that return types with arguments of type HttpMessageConverterModifier and TypeMethodDescriptionExceptionHandlerExceptionResolver.getMessageConverters()Return the configured message body converters.RequestMappingHandlerAdapter.getMessageConverters()Return the configured message body converters.Method parameters in org.springframework.web.servlet.mvc.method.annotation with type arguments of type HttpMessageConverterModifier and TypeMethodDescriptionRequestBodyAdvice.afterBodyRead(Object body, HttpInputMessage inputMessage, MethodParameter parameter, Type targetType, Class<? extends HttpMessageConverter<?>> converterType) Invoked third (and last) after the request body is converted to an Object.RequestBodyAdviceAdapter.afterBodyRead(Object body, HttpInputMessage inputMessage, MethodParameter parameter, Type targetType, Class<? extends HttpMessageConverter<?>> converterType) The default implementation returns the body that was passed in.JsonViewRequestBodyAdvice.beforeBodyRead(HttpInputMessage inputMessage, MethodParameter methodParameter, Type targetType, Class<? extends HttpMessageConverter<?>> selectedConverterType) RequestBodyAdvice.beforeBodyRead(HttpInputMessage inputMessage, MethodParameter parameter, Type targetType, Class<? extends HttpMessageConverter<?>> converterType) Invoked second before the request body is read and converted.RequestBodyAdviceAdapter.beforeBodyRead(HttpInputMessage inputMessage, MethodParameter parameter, Type targetType, Class<? extends HttpMessageConverter<?>> converterType) The default implementation returns the InputMessage that was passed in.final ObjectAbstractMappingJacksonResponseBodyAdvice.beforeBodyWrite(Object body, MethodParameter returnType, MediaType contentType, Class<? extends HttpMessageConverter<?>> converterType, ServerHttpRequest request, ServerHttpResponse response) ResponseBodyAdvice.beforeBodyWrite(T body, MethodParameter returnType, MediaType selectedContentType, Class<? extends HttpMessageConverter<?>> selectedConverterType, ServerHttpRequest request, ServerHttpResponse response) Invoked after anHttpMessageConverteris selected and just before its write method is invoked.RequestBodyAdvice.handleEmptyBody(Object body, HttpInputMessage inputMessage, MethodParameter parameter, Type targetType, Class<? extends HttpMessageConverter<?>> converterType) Invoked second (and last) if the body is empty.RequestBodyAdviceAdapter.handleEmptyBody(Object body, HttpInputMessage inputMessage, MethodParameter parameter, Type targetType, Class<? extends HttpMessageConverter<?>> converterType) The default implementation returns the body that was passed in.voidExceptionHandlerExceptionResolver.setMessageConverters(List<HttpMessageConverter<?>> messageConverters) Set the message body converters to use.voidRequestMappingHandlerAdapter.setMessageConverters(List<HttpMessageConverter<?>> messageConverters) Provide the converters to use in argument resolvers and return value handlers that support reading and/or writing to the body of the request and response.booleanAbstractMappingJacksonResponseBodyAdvice.supports(MethodParameter returnType, Class<? extends HttpMessageConverter<?>> converterType) booleanJsonViewRequestBodyAdvice.supports(MethodParameter methodParameter, Type targetType, Class<? extends HttpMessageConverter<?>> converterType) booleanJsonViewResponseBodyAdvice.supports(MethodParameter returnType, Class<? extends HttpMessageConverter<?>> converterType) booleanRequestBodyAdvice.supports(MethodParameter methodParameter, Type targetType, Class<? extends HttpMessageConverter<?>> converterType) Invoked first to determine if this interceptor applies.booleanResponseBodyAdvice.supports(MethodParameter returnType, Class<? extends HttpMessageConverter<?>> converterType) Whether this component supports the given controller method return type and the selectedHttpMessageConvertertype.Constructor parameters in org.springframework.web.servlet.mvc.method.annotation with type arguments of type HttpMessageConverterModifierConstructorDescriptionAbstractMessageConverterMethodArgumentResolver(List<HttpMessageConverter<?>> converters) Basic constructor with converters only.AbstractMessageConverterMethodArgumentResolver(List<HttpMessageConverter<?>> converters, List<Object> requestResponseBodyAdvice) Constructor with converters andRequest~andResponseBodyAdvice.protectedAbstractMessageConverterMethodProcessor(List<HttpMessageConverter<?>> converters) Constructor with list of converters only.protectedAbstractMessageConverterMethodProcessor(List<HttpMessageConverter<?>> converters, ContentNegotiationManager contentNegotiationManager) Constructor with list of converters and ContentNegotiationManager.protectedAbstractMessageConverterMethodProcessor(List<HttpMessageConverter<?>> converters, ContentNegotiationManager manager, List<Object> requestResponseBodyAdvice) Constructor with list of converters and ContentNegotiationManager as well as request/response body advice instances.HttpEntityMethodProcessor(List<HttpMessageConverter<?>> converters) Basic constructor with converters only.HttpEntityMethodProcessor(List<HttpMessageConverter<?>> converters, List<Object> requestResponseBodyAdvice) Complete constructor for resolvingHttpEntitymethod arguments.HttpEntityMethodProcessor(List<HttpMessageConverter<?>> converters, ContentNegotiationManager manager) Basic constructor with converters andContentNegotiationManager.HttpEntityMethodProcessor(List<HttpMessageConverter<?>> converters, ContentNegotiationManager manager, List<Object> requestResponseBodyAdvice) Complete constructor for resolvingHttpEntityand handlingResponseEntity.RequestPartMethodArgumentResolver(List<HttpMessageConverter<?>> messageConverters) Basic constructor with converters only.RequestPartMethodArgumentResolver(List<HttpMessageConverter<?>> messageConverters, List<Object> requestResponseBodyAdvice) Constructor with converters andRequestBodyAdviceandResponseBodyAdvice.RequestResponseBodyMethodProcessor(List<HttpMessageConverter<?>> converters) Basic constructor with converters only.RequestResponseBodyMethodProcessor(List<HttpMessageConverter<?>> converters, List<Object> requestResponseBodyAdvice) Complete constructor for resolving@RequestBodymethod arguments.RequestResponseBodyMethodProcessor(List<HttpMessageConverter<?>> converters, ContentNegotiationManager manager) Basic constructor with converters andContentNegotiationManager.RequestResponseBodyMethodProcessor(List<HttpMessageConverter<?>> converters, ContentNegotiationManager manager, List<Object> requestResponseBodyAdvice) Complete constructor for resolving@RequestBodyand handling@ResponseBody.ResponseBodyEmitterReturnValueHandler(List<HttpMessageConverter<?>> messageConverters) Simple constructor with reactive type support based on a default instance ofReactiveAdapterRegistry,SyncTaskExecutor, andContentNegotiationManagerwith an Accept header strategy.ResponseBodyEmitterReturnValueHandler(List<HttpMessageConverter<?>> messageConverters, ReactiveAdapterRegistry registry, TaskExecutor executor, ContentNegotiationManager manager) Complete constructor with pluggable "reactive" type support.