public class SyndFeedHttpMessageConverter extends AbstractHttpMessageConverter<com.google.code.rome.android.repackaged.com.sun.syndication.feed.synd.SyndFeed>
HttpMessageConverter that can read and write RSS and
ATOM feeds. Specifically, this converter can handle SyndFeed objects, from the Android ROME Feed Reader, which is a repackaging of
java.net's ROME.
By default, this converter reads and writes the media types (application/rss+xml and
application/atom+xml). This can be overridden by setting the supportedMediaTypes property.
SyndFeed| Modifier and Type | Field and Description |
|---|---|
static java.nio.charset.Charset |
DEFAULT_CHARSET |
| Constructor and Description |
|---|
SyndFeedHttpMessageConverter()
|
| Modifier and Type | Method and Description |
|---|---|
protected com.google.code.rome.android.repackaged.com.sun.syndication.feed.synd.SyndFeed |
readInternal(java.lang.Class<? extends com.google.code.rome.android.repackaged.com.sun.syndication.feed.synd.SyndFeed> clazz,
HttpInputMessage inputMessage)
Abstract template method that reads the actualy object.
|
protected boolean |
supports(java.lang.Class<?> clazz)
Indicates whether the given class is supported by this converter.
|
protected void |
writeInternal(com.google.code.rome.android.repackaged.com.sun.syndication.feed.synd.SyndFeed syndFeed,
HttpOutputMessage outputMessage)
Abstract template method that writes the actual body.
|
canRead, canRead, canWrite, canWrite, getContentLength, getDefaultContentType, getSupportedMediaTypes, read, setSupportedMediaTypes, writeprotected boolean supports(java.lang.Class<?> clazz)
AbstractHttpMessageConvertersupports in class AbstractHttpMessageConverter<com.google.code.rome.android.repackaged.com.sun.syndication.feed.synd.SyndFeed>clazz - the class to test for supporttrue if supported; false otherwiseprotected com.google.code.rome.android.repackaged.com.sun.syndication.feed.synd.SyndFeed readInternal(java.lang.Class<? extends com.google.code.rome.android.repackaged.com.sun.syndication.feed.synd.SyndFeed> clazz,
HttpInputMessage inputMessage)
throws java.io.IOException,
HttpMessageNotReadableException
AbstractHttpMessageConverterAbstractHttpMessageConverter.read(java.lang.Class<? extends T>, org.springframework.http.HttpInputMessage).readInternal in class AbstractHttpMessageConverter<com.google.code.rome.android.repackaged.com.sun.syndication.feed.synd.SyndFeed>clazz - the type of object to returninputMessage - the HTTP input message to read fromjava.io.IOException - in case of I/O errorsHttpMessageNotReadableException - in case of conversion errorsprotected void writeInternal(com.google.code.rome.android.repackaged.com.sun.syndication.feed.synd.SyndFeed syndFeed,
HttpOutputMessage outputMessage)
throws java.io.IOException,
HttpMessageNotWritableException
AbstractHttpMessageConverterAbstractHttpMessageConverter.write(T, org.springframework.http.MediaType, org.springframework.http.HttpOutputMessage).writeInternal in class AbstractHttpMessageConverter<com.google.code.rome.android.repackaged.com.sun.syndication.feed.synd.SyndFeed>syndFeed - the object to write to the output messageoutputMessage - the message to write tojava.io.IOException - in case of I/O errorsHttpMessageNotWritableException - in case of conversion errors