org.springframework.http.converter.feed
Class AtomFeedHttpMessageConverter

java.lang.Object
  extended by org.springframework.http.converter.AbstractHttpMessageConverter<T>
      extended by org.springframework.http.converter.feed.AbstractWireFeedHttpMessageConverter<com.sun.syndication.feed.atom.Feed>
          extended by org.springframework.http.converter.feed.AtomFeedHttpMessageConverter
All Implemented Interfaces:
HttpMessageConverter<com.sun.syndication.feed.atom.Feed>

public class AtomFeedHttpMessageConverter
extends AbstractWireFeedHttpMessageConverter<com.sun.syndication.feed.atom.Feed>

Implementation of HttpMessageConverter that can read and write Atom feeds. Specifically, this converter can handle Feed objects, from the ROME project.

By default, this converter reads and writes the media type (application/atom+xml). This can be overridden by setting the supportedMediaTypes property.

Since:
3.0.2
Author:
Arjen Poutsma
See Also:
Feed

Field Summary
 
Fields inherited from class org.springframework.http.converter.feed.AbstractWireFeedHttpMessageConverter
DEFAULT_CHARSET
 
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger
 
Constructor Summary
AtomFeedHttpMessageConverter()
           
 
Method Summary
protected  boolean supports(Class<?> clazz)
          Indicates whether the given class is supported by this converter.
 
Methods inherited from class org.springframework.http.converter.feed.AbstractWireFeedHttpMessageConverter
readInternal, writeInternal
 
Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
canRead, canRead, canWrite, canWrite, getContentLength, getDefaultContentType, getSupportedMediaTypes, read, setSupportedMediaTypes, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomFeedHttpMessageConverter

public AtomFeedHttpMessageConverter()
Method Detail

supports

protected boolean supports(Class<?> clazz)
Description copied from class: AbstractHttpMessageConverter
Indicates whether the given class is supported by this converter.

Specified by:
supports in class AbstractHttpMessageConverter<com.sun.syndication.feed.atom.Feed>
Parameters:
clazz - the class to test for support
Returns:
true if supported; false otherwise