Class StringHttpMessageConverter

java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<String>
org.springframework.http.converter.StringHttpMessageConverter
All Implemented Interfaces:
HttpMessageConverter<String>

public class StringHttpMessageConverter extends AbstractHttpMessageConverter<String>
Implementation of HttpMessageConverter that can read and write strings.

By default, this converter supports all media types (*/*), and writes with a Content-Type of text/plain. This can be overridden by setting the supportedMediaTypes property.

Since:
3.0
Author:
Arjen Poutsma, Juergen Hoeller