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.support | |
org.springframework.http.converter.xml |
Provides an HttpMessageConverter implementations for handling XML.
|
org.springframework.test.web.servlet.setup |
Contains built-in
MockMvcBuilder implementations. |
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 | Interface and Description |
---|---|
interface |
GenericHttpMessageConverter<T>
A specialization of
HttpMessageConverter that can convert an HTTP
request into a target object of a specified generic type. |
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. |
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. |
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 the
ROME tools project.
|
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
Implementation of
HttpMessageConverter that
can read and write JSON using Jackson 1.x's ObjectMapper . |
Modifier and Type | Class and Description |
---|---|
class |
AllEncompassingFormHttpMessageConverter
Extension of
FormHttpMessageConverter ,
adding support for XML and JSON-based parts. |
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 |
Jaxb2CollectionHttpMessageConverter<T extends Collection>
An
HttpMessageConverter that can read XML collections using JAXB2. |
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
Deprecated.
in favor of
AllEncompassingFormHttpMessageConverter |
Modifier and Type | Method and Description |
---|---|
StandaloneMockMvcBuilder |
StandaloneMockMvcBuilder.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.
|
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()
Return 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. |
HttpMessageConverterExtractor(Type responseType,
List<HttpMessageConverter<?>> messageConverters)
Creates a new instance of the
HttpMessageConverterExtractor with the given
response type and message converters. |
RestTemplate(List<HttpMessageConverter<?>> messageConverters)
Create a new instance of the
RestTemplate using the given list of
HttpMessageConverter to use |
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.
|
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. |
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 . |
Modifier and Type | Method and Description |
---|---|
HttpMessageConverter<?>[] |
AnnotationMethodHandlerAdapter.getMessageConverters()
Deprecated.
Return the message body converters that this adapter has been configured with.
|
Modifier and Type | Method and Description |
---|---|
void |
AnnotationMethodHandlerExceptionResolver.setMessageConverters(HttpMessageConverter<?>[] messageConverters)
Deprecated.
Set the message body converters to use.
|
void |
AnnotationMethodHandlerAdapter.setMessageConverters(HttpMessageConverter<?>[] messageConverters)
Deprecated.
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) |
AbstractMessageConverterMethodProcessor(List<HttpMessageConverter<?>> messageConverters,
ContentNegotiationManager manager) |
HttpEntityMethodProcessor(List<HttpMessageConverter<?>> messageConverters) |
HttpEntityMethodProcessor(List<HttpMessageConverter<?>> messageConverters,
ContentNegotiationManager contentNegotiationManager) |
RequestPartMethodArgumentResolver(List<HttpMessageConverter<?>> messageConverters) |
RequestResponseBodyMethodProcessor(List<HttpMessageConverter<?>> messageConverters) |
RequestResponseBodyMethodProcessor(List<HttpMessageConverter<?>> messageConverters,
ContentNegotiationManager contentNegotiationManager) |
Copyright © 2015. All rights reserved.