org.restlet.ext.rome
Class SyndFeedRepresentation
java.lang.Object
org.restlet.representation.Variant
org.restlet.representation.RepresentationInfo
org.restlet.representation.Representation
org.restlet.representation.CharacterRepresentation
org.restlet.representation.WriterRepresentation
org.restlet.ext.rome.SyndFeedRepresentation
public class SyndFeedRepresentation
- extends WriterRepresentation
A syndicated feed representation (such as RSS or Atom) based on the ROME
library. Add feed entries to SyndFeed.getEntries()
, which you can
access via getFeed()
.
- Author:
- Tal Liron
- See Also:
- ROME home
Methods inherited from class org.restlet.representation.Representation |
checkDigest, checkDigest, computeDigest, createEmpty, exhaust, getAvailableSize, getDigest, getDisposition, getDownloadName, getExpirationDate, getRange, getSize, getText, isAvailable, isDownloadable, isTransient, setAvailable, setDigest, setDisposition, setDownloadable, setDownloadName, setExpirationDate, setRange, setSize, setTransient |
Methods inherited from class org.restlet.representation.Variant |
createClientInfo, equals, getCharacterSet, getEncodings, getIdentifier, getLanguages, getLocationRef, getMediaType, includes, isCompatible, setCharacterSet, setEncodings, setIdentifier, setIdentifier, setLanguages, setLocationRef, setLocationRef, setMediaType, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SyndFeedRepresentation
public SyndFeedRepresentation()
- Constructs a UTF8 RSS 2.0 feed.
SyndFeedRepresentation
public SyndFeedRepresentation(java.lang.String feedType)
- Constructs a UTF8 feed.
- Parameters:
feedType
- The feed type (see ROME documentation)
SyndFeedRepresentation
public SyndFeedRepresentation(java.lang.String feedType,
CharacterSet characterSet)
- Constructs a feed.
- Parameters:
feedType
- The feed type (see ROME documentation)characterSet
- The character set
SyndFeedRepresentation
public SyndFeedRepresentation(java.lang.String feedType,
java.util.List<?> entries,
CharacterSet characterSet)
- Constructs a feed.
- Parameters:
feedType
- The feed type (see ROME documentation)entries
- The list of entriescharacterSet
- The character set
SyndFeedRepresentation
public SyndFeedRepresentation(SyndFeed feed)
- Constructor around an existing feed.
- Parameters:
feed
- The feed (must have a valid feedType!)
getFeed
public SyndFeed getFeed()
- The wrapped feed.
- Returns:
- The feed
write
public void write(java.io.Writer writer)
throws java.io.IOException
- Specified by:
write
in class Representation
- Throws:
java.io.IOException
Copyright © 2005-2010 Noelios Technologies.