Package | Description |
---|---|
org.springframework.http.converter |
Provides an HttpMessageConverter abstraction to convert between Java objects and HTTP input/output messages.
|
org.springframework.http.converter.feed |
Provides HttpMessageConverter implementations for handling Atom and RSS feeds.
|
org.springframework.http.converter.json |
Provides an HttpMessageConverter implementations for handling JSON.
|
org.springframework.http.converter.xml |
Provides an HttpMessageConverter implementations for handling XML.
|
org.springframework.web.bind.annotation.support |
Support classes for web annotation processing.
|
org.springframework.web.client |
Core package of the client-side web support.
|
org.springframework.web.servlet.config.annotation |
Annotation-based setup for Spring MVC.
|
org.springframework.web.servlet.mvc.annotation |
Support package for annotation-based Servlet MVC controllers.
|
org.springframework.web.servlet.mvc.method.annotation |
MVC infrastructure for annotation-based handler method processing,
building on the
org.springframework.web.method.annotation package. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractHttpMessageConverter<T>
Abstract base class for most
HttpMessageConverter implementations. |
class |
BufferedImageHttpMessageConverter
Implementation of
HttpMessageConverter that can read and write BufferedImages . |
class |
ByteArrayHttpMessageConverter
Implementation of
HttpMessageConverter that can read and write byte arrays. |
class |
FormHttpMessageConverter
Implementation of
HttpMessageConverter that can handle form data, including multipart form data (i.e. file
uploads). |
class |
ResourceHttpMessageConverter
Implementation of
HttpMessageConverter that can read and write Resources . |
class |
StringHttpMessageConverter
Implementation of
HttpMessageConverter that can read and write strings. |
Modifier and Type | Method and Description |
---|---|
void |
FormHttpMessageConverter.addPartConverter(HttpMessageConverter<?> partConverter)
Add a message body converter.
|
Modifier and Type | Method and Description |
---|---|
void |
FormHttpMessageConverter.setPartConverters(List<HttpMessageConverter<?>> partConverters)
Set the message body converters to use.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractWireFeedHttpMessageConverter<T extends com.sun.syndication.feed.WireFeed>
Abstract base class for Atom and RSS Feed message converters, using java.net's
ROME package.
|
class |
AtomFeedHttpMessageConverter
Implementation of
HttpMessageConverter that can read and write Atom feeds. |
class |
RssChannelHttpMessageConverter
Implementation of
HttpMessageConverter that can read and write RSS feeds. |
Modifier and Type | Class and Description |
---|---|
class |
MappingJackson2HttpMessageConverter
|
class |
MappingJacksonHttpMessageConverter
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractJaxb2HttpMessageConverter<T>
Abstract base class for
HttpMessageConverters that
use JAXB2. |
class |
AbstractXmlHttpMessageConverter<T>
Abstract base class for
HttpMessageConverters
that convert from/to XML. |
class |
Jaxb2RootElementHttpMessageConverter
Implementation of
HttpMessageConverter that can read
and write XML using JAXB2. |
class |
MarshallingHttpMessageConverter
Implementation of
HttpMessageConverter
that can read and write XML using Spring's Marshaller and Unmarshaller abstractions. |
class |
SourceHttpMessageConverter<T extends Source>
Implementation of
HttpMessageConverter
that can read and write Source objects. |
class |
XmlAwareFormHttpMessageConverter
Extension of
FormHttpMessageConverter ,
adding support for XML-based parts through a SourceHttpMessageConverter . |
Constructor and Description |
---|
HandlerMethodInvoker(HandlerMethodResolver methodResolver,
WebBindingInitializer bindingInitializer,
SessionAttributeStore sessionAttributeStore,
ParameterNameDiscoverer parameterNameDiscoverer,
WebArgumentResolver[] customArgumentResolvers,
HttpMessageConverter[] messageConverters) |
Modifier and Type | Method and Description |
---|---|
List<HttpMessageConverter<?>> |
RestTemplate.getMessageConverters()
Returns the message body converters.
|
Modifier and Type | Method and Description |
---|---|
void |
RestTemplate.setMessageConverters(List<HttpMessageConverter<?>> messageConverters)
Set the message body converters to use.
|
Constructor and Description |
---|
HttpMessageConverterExtractor(Class<T> responseType,
List<HttpMessageConverter<?>> messageConverters)
Creates a new instance of the
HttpMessageConverterExtractor with the given response type and message
converters. |
Modifier and Type | Method and Description |
---|---|
protected List<HttpMessageConverter<?>> |
WebMvcConfigurationSupport.getMessageConverters()
Provides access to the shared
HttpMessageConverter s used by the
RequestMappingHandlerAdapter and the
ExceptionHandlerExceptionResolver . |
Modifier and Type | Method and Description |
---|---|
protected void |
WebMvcConfigurationSupport.addDefaultHttpMessageConverters(List<HttpMessageConverter<?>> messageConverters)
Adds a set of default HttpMessageConverter instances to the given list.
|
protected void |
DelegatingWebMvcConfiguration.configureMessageConverters(List<HttpMessageConverter<?>> converters) |
void |
WebMvcConfigurer.configureMessageConverters(List<HttpMessageConverter<?>> converters)
Configure the
HttpMessageConverter s to use in argument resolvers
and return value handlers that support reading and/or writing to the
body of the request and response. |
protected void |
WebMvcConfigurationSupport.configureMessageConverters(List<HttpMessageConverter<?>> converters)
Override this method to add custom
HttpMessageConverter s to use
with the RequestMappingHandlerAdapter and the
ExceptionHandlerExceptionResolver . |
void |
WebMvcConfigurerAdapter.configureMessageConverters(List<HttpMessageConverter<?>> converters)
Configure the
HttpMessageConverter s to use in argument resolvers
and return value handlers that support reading and/or writing to the
body of the request and response. |
Modifier and Type | Method and Description |
---|---|
HttpMessageConverter<?>[] |
AnnotationMethodHandlerAdapter.getMessageConverters()
Return the message body converters that this adapter has been configured with.
|
Modifier and Type | Method and Description |
---|---|
void |
AnnotationMethodHandlerExceptionResolver.setMessageConverters(HttpMessageConverter<?>[] messageConverters)
Set the message body converters to use.
|
void |
AnnotationMethodHandlerAdapter.setMessageConverters(HttpMessageConverter<?>[] messageConverters)
Set the message body converters to use.
|
Modifier and Type | Field and Description |
---|---|
protected List<HttpMessageConverter<?>> |
AbstractMessageConverterMethodArgumentResolver.messageConverters |
Modifier and Type | Method and Description |
---|---|
List<HttpMessageConverter<?>> |
RequestMappingHandlerAdapter.getMessageConverters()
Return the configured message body converters.
|
List<HttpMessageConverter<?>> |
ExceptionHandlerExceptionResolver.getMessageConverters()
Return the configured message body converters.
|
Modifier and Type | Method and Description |
---|---|
void |
RequestMappingHandlerAdapter.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.
|
void |
ExceptionHandlerExceptionResolver.setMessageConverters(List<HttpMessageConverter<?>> messageConverters)
Set the message body converters to use.
|
Constructor and Description |
---|
AbstractMessageConverterMethodArgumentResolver(List<HttpMessageConverter<?>> messageConverters) |
AbstractMessageConverterMethodProcessor(List<HttpMessageConverter<?>> messageConverters) |
HttpEntityMethodProcessor(List<HttpMessageConverter<?>> messageConverters) |
RequestPartMethodArgumentResolver(List<HttpMessageConverter<?>> messageConverters) |
RequestResponseBodyMethodProcessor(List<HttpMessageConverter<?>> messageConverters) |
Copyright © 2015. All rights reserved.