public class RssChannelHttpMessageConverter extends AbstractWireFeedHttpMessageConverter<com.rometools.rome.feed.rss.Channel>
HttpMessageConverter
that can read and write RSS feeds. Specifically, this converter can handle Channel
objects from the ROME project.
NOTE: As of Spring 4.1, this is based on the com.rometools
variant of ROME, version 1.5. Please upgrade your build dependency.
By default, this converter reads and writes the media type (application/rss+xml
).
This can be overridden through the supportedMediaTypes
property.
Channel
DEFAULT_CHARSET
logger
Constructor and Description |
---|
RssChannelHttpMessageConverter() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
supports(Class<?> clazz)
Indicates whether the given class is supported by this converter.
|
readInternal, writeInternal
addDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSupportedMediaTypes
protected boolean supports(Class<?> clazz)
AbstractHttpMessageConverter
supports
in class AbstractHttpMessageConverter<com.rometools.rome.feed.rss.Channel>
clazz
- the class to test for supporttrue
if supported; false
otherwise