类 AbstractWireFeedHttpMessageConverter<T extends com.rometools.rome.feed.WireFeed>
- java.lang.Object
- org.springframework.http.converter.AbstractHttpMessageConverter<T>
- org.springframework.http.converter.feed.AbstractWireFeedHttpMessageConverter<T>
- 类型参数:
T
- the converted object type
- 所有已实现的接口:
HttpMessageConverter<T>
public abstract class AbstractWireFeedHttpMessageConverter<T extends com.rometools.rome.feed.WireFeed> extends AbstractHttpMessageConverter<T>
Abstract base class for Atom and RSS Feed message converters, using the ROME tools 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.- 从以下版本开始:
- 3.0.2
- 作者:
- Arjen Poutsma
- 另请参阅:
AtomFeedHttpMessageConverter
,RssChannelHttpMessageConverter
字段概要
字段 修饰符和类型 字段 说明 static Charset
DEFAULT_CHARSET
The default charset used by the converter.从类继承的字段 org.springframework.http.converter.AbstractHttpMessageConverter
logger
构造器概要
构造器 限定符 构造器 说明 protected
AbstractWireFeedHttpMessageConverter(MediaType supportedMediaType)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected T
readInternal(Class<? extends T> clazz, HttpInputMessage inputMessage)
Abstract template method that reads the actual object.protected void
writeInternal(T wireFeed, HttpOutputMessage outputMessage)
Abstract template method that writes the actual body.从类继承的方法 org.springframework.http.converter.AbstractHttpMessageConverter
addDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, supports, write
字段详细资料
DEFAULT_CHARSET
public static final Charset DEFAULT_CHARSET
The default charset used by the converter.
构造器详细资料
AbstractWireFeedHttpMessageConverter
protected AbstractWireFeedHttpMessageConverter(MediaType supportedMediaType)
方法详细资料
readInternal
protected T readInternal(Class<? extends T> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException
从类复制的说明:AbstractHttpMessageConverter
Abstract template method that reads the actual object. Invoked fromAbstractHttpMessageConverter.read(java.lang.Class<? extends T>, org.springframework.http.HttpInputMessage)
.- 指定者:
readInternal
在类中AbstractHttpMessageConverter<T extends com.rometools.rome.feed.WireFeed>
- 参数:
clazz
- the type of object to returninputMessage
- the HTTP input message to read from- 返回:
- the converted object
- 抛出:
IOException
- in case of I/O errorsHttpMessageNotReadableException
- in case of conversion errors
writeInternal
protected void writeInternal(T wireFeed, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException
从类复制的说明:AbstractHttpMessageConverter
Abstract template method that writes the actual body. Invoked fromAbstractHttpMessageConverter.write(T, org.springframework.http.MediaType, org.springframework.http.HttpOutputMessage)
.- 指定者:
writeInternal
在类中AbstractHttpMessageConverter<T extends com.rometools.rome.feed.WireFeed>
- 参数:
wireFeed
- the object to write to the output messageoutputMessage
- the HTTP output message to write to- 抛出:
IOException
- in case of I/O errorsHttpMessageNotWritableException
- in case of conversion errors