public abstract class AbstractWireFeedHttpMessageConverter<T extends com.google.code.rome.android.repackaged.com.sun.syndication.feed.WireFeed> extends AbstractHttpMessageConverter<T>
SyndFeedHttpMessageConverter
,
AtomFeedHttpMessageConverter
,
RssChannelHttpMessageConverter
Modifier and Type | Field and Description |
---|---|
static java.nio.charset.Charset |
DEFAULT_CHARSET |
Modifier | Constructor and Description |
---|---|
protected |
AbstractWireFeedHttpMessageConverter(MediaType supportedMediaType) |
Modifier and Type | Method and Description |
---|---|
protected T |
readInternal(java.lang.Class<? extends T> clazz,
HttpInputMessage inputMessage)
Abstract template method that reads the actualy 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
protected AbstractWireFeedHttpMessageConverter(MediaType supportedMediaType)
protected T readInternal(java.lang.Class<? extends T> clazz, HttpInputMessage inputMessage) throws java.io.IOException, HttpMessageNotReadableException
AbstractHttpMessageConverter
AbstractHttpMessageConverter.read(java.lang.Class<? extends T>, org.springframework.http.HttpInputMessage)
.readInternal
in class AbstractHttpMessageConverter<T extends com.google.code.rome.android.repackaged.com.sun.syndication.feed.WireFeed>
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(T wireFeed, HttpOutputMessage outputMessage) throws java.io.IOException, HttpMessageNotWritableException
AbstractHttpMessageConverter
AbstractHttpMessageConverter.write(T, org.springframework.http.MediaType, org.springframework.http.HttpOutputMessage)
.writeInternal
in class AbstractHttpMessageConverter<T extends com.google.code.rome.android.repackaged.com.sun.syndication.feed.WireFeed>
wireFeed
- 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