org.springframework.http.converter.feed
Class AbstractWireFeedHttpMessageConverter<T extends com.google.code.rome.android.repackaged.com.sun.syndication.feed.WireFeed>

java.lang.Object
  extended by org.springframework.http.converter.AbstractHttpMessageConverter<T>
      extended by org.springframework.http.converter.feed.AbstractWireFeedHttpMessageConverter<T>
All Implemented Interfaces:
HttpMessageConverter<T>
Direct Known Subclasses:
AtomFeedHttpMessageConverter, RssChannelHttpMessageConverter

public abstract class AbstractWireFeedHttpMessageConverter<T extends com.google.code.rome.android.repackaged.com.sun.syndication.feed.WireFeed>
extends AbstractHttpMessageConverter<T>

Abstract base class for Atom and RSS Feed message converters, using java.net's ROME package.

Since:
1.0.0
See Also:
AtomFeedHttpMessageConverter, RssChannelHttpMessageConverter

Field Summary
static java.nio.charset.Charset DEFAULT_CHARSET
           
 
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger
 
Constructor Summary
protected AbstractWireFeedHttpMessageConverter(MediaType supportedMediaType)
           
 
Method Summary
protected  T readInternal(java.lang.Class<? extends T> clazz, HttpInputMessage inputMessage)
           
protected  void writeInternal(T wireFeed, HttpOutputMessage outputMessage)
           
 
Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
canRead, canRead, canWrite, canWrite, getContentLength, getDefaultContentType, getSupportedMediaTypes, read, setSupportedMediaTypes, supports, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CHARSET

public static final java.nio.charset.Charset DEFAULT_CHARSET
Constructor Detail

AbstractWireFeedHttpMessageConverter

protected AbstractWireFeedHttpMessageConverter(MediaType supportedMediaType)
Method Detail

readInternal

protected T readInternal(java.lang.Class<? extends T> clazz,
                         HttpInputMessage inputMessage)
                                                                                                    throws java.io.IOException,
                                                                                                           HttpMessageNotReadableException
Specified by:
readInternal in class AbstractHttpMessageConverter<T extends com.google.code.rome.android.repackaged.com.sun.syndication.feed.WireFeed>
Throws:
java.io.IOException
HttpMessageNotReadableException

writeInternal

protected void writeInternal(T wireFeed,
                             HttpOutputMessage outputMessage)
                      throws java.io.IOException,
                             HttpMessageNotWritableException
Specified by:
writeInternal in class AbstractHttpMessageConverter<T extends com.google.code.rome.android.repackaged.com.sun.syndication.feed.WireFeed>
Throws:
java.io.IOException
HttpMessageNotWritableException