类 AtomFeedHttpMessageConverter
- java.lang.Object
- org.springframework.http.converter.AbstractHttpMessageConverter<T>
- org.springframework.http.converter.feed.AbstractWireFeedHttpMessageConverter<com.rometools.rome.feed.atom.Feed>
- org.springframework.http.converter.feed.AtomFeedHttpMessageConverter
- 所有已实现的接口:
HttpMessageConverter<com.rometools.rome.feed.atom.Feed>
public class AtomFeedHttpMessageConverter extends AbstractWireFeedHttpMessageConverter<com.rometools.rome.feed.atom.Feed>
Implementation ofHttpMessageConverter
that can read and write Atom feeds. Specifically, this converter can handleFeed
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/atom+xml
). This can be overridden through thesupportedMediaTypes
property.- 从以下版本开始:
- 3.0.2
- 作者:
- Arjen Poutsma
- 另请参阅:
Feed
字段概要
从类继承的字段 org.springframework.http.converter.feed.AbstractWireFeedHttpMessageConverter
DEFAULT_CHARSET
从类继承的字段 org.springframework.http.converter.AbstractHttpMessageConverter
logger
构造器概要
构造器 构造器 说明 AtomFeedHttpMessageConverter()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected boolean
supports(Class<?> clazz)
Indicates whether the given class is supported by this converter.从类继承的方法 org.springframework.http.converter.feed.AbstractWireFeedHttpMessageConverter
readInternal, writeInternal
从类继承的方法 org.springframework.http.converter.AbstractHttpMessageConverter
addDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, write
构造器详细资料
AtomFeedHttpMessageConverter
public AtomFeedHttpMessageConverter()
方法详细资料
supports
protected boolean supports(Class<?> clazz)
从类复制的说明:AbstractHttpMessageConverter
Indicates whether the given class is supported by this converter.- 指定者:
supports
在类中AbstractHttpMessageConverter<com.rometools.rome.feed.atom.Feed>
- 参数:
clazz
- the class to test for support- 返回:
true
if supported;false
otherwise