public abstract class AbstractWireFeedHttpMessageConverter<T extends com.sun.syndication.feed.WireFeed> extends AbstractHttpMessageConverter<T>
AtomFeedHttpMessageConverter
,
RssChannelHttpMessageConverter
Modifier and Type | Field and Description |
---|---|
static Charset |
DEFAULT_CHARSET |
logger
Modifier | Constructor and Description |
---|---|
protected |
AbstractWireFeedHttpMessageConverter(MediaType supportedMediaType) |
Modifier and Type | Method and Description |
---|---|
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.
|
canRead, canRead, canWrite, canWrite, getContentLength, getDefaultContentType, getSupportedMediaTypes, read, setSupportedMediaTypes, supports, write
public static final Charset DEFAULT_CHARSET
protected AbstractWireFeedHttpMessageConverter(MediaType supportedMediaType)
protected T readInternal(Class<? extends T> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException
AbstractHttpMessageConverter
AbstractHttpMessageConverter.read(java.lang.Class<? extends T>, org.springframework.http.HttpInputMessage)
.readInternal
in class AbstractHttpMessageConverter<T extends com.sun.syndication.feed.WireFeed>
clazz
- the type of object to returninputMessage
- the HTTP input message to read fromIOException
- in case of I/O errorsHttpMessageNotReadableException
- in case of conversion errorsprotected void writeInternal(T wireFeed, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException
AbstractHttpMessageConverter
AbstractHttpMessageConverter.write(T, org.springframework.http.MediaType, org.springframework.http.HttpOutputMessage)
.writeInternal
in class AbstractHttpMessageConverter<T extends com.sun.syndication.feed.WireFeed>
wireFeed
- the object to write to the output messageoutputMessage
- the HTTP output message to write toIOException
- in case of I/O errorsHttpMessageNotWritableException
- in case of conversion errors