|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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
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()
.
Field Summary |
---|
Fields inherited from class org.restlet.representation.Representation |
---|
UNKNOWN_SIZE |
Constructor Summary | |
---|---|
SyndFeedRepresentation()
Constructs a UTF8 RSS 2.0 feed. |
|
SyndFeedRepresentation(Representation feedRepresentation)
Constructor that parses the given feed representation. |
|
SyndFeedRepresentation(String feedType)
Constructs a UTF8 feed. |
|
SyndFeedRepresentation(String feedType,
CharacterSet characterSet)
Constructs a feed. |
|
SyndFeedRepresentation(String feedType,
List<?> entries,
CharacterSet characterSet)
Constructs a feed. |
|
SyndFeedRepresentation(com.sun.syndication.feed.synd.SyndFeed feed)
Constructor around an existing feed. |
Method Summary | |
---|---|
com.sun.syndication.feed.synd.SyndFeed |
getFeed()
The wrapped feed. |
static MediaType |
getMediaType(String feedType)
Converts a feed type to a media type. |
void |
write(Writer writer)
|
Methods inherited from class org.restlet.representation.WriterRepresentation |
---|
getReader |
Methods inherited from class org.restlet.representation.CharacterRepresentation |
---|
getChannel, getStream, write, write |
Methods inherited from class org.restlet.representation.Representation |
---|
append, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getSize, getText, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, release, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, setRange, setSize, setTransient |
Methods inherited from class org.restlet.representation.RepresentationInfo |
---|
getModificationDate, getTag, setModificationDate, setTag |
Methods inherited from class org.restlet.representation.Variant |
---|
createClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SyndFeedRepresentation()
public SyndFeedRepresentation(Representation feedRepresentation) throws IOException
feedRepresentation
- The feed representation to parse.
IOException
public SyndFeedRepresentation(String feedType)
feedType
- The feed type (see ROME documentation)public SyndFeedRepresentation(String feedType, CharacterSet characterSet)
feedType
- The feed type (see ROME documentation)characterSet
- The character setpublic SyndFeedRepresentation(String feedType, List<?> entries, CharacterSet characterSet)
feedType
- The feed type (see ROME documentation)entries
- The list of entriescharacterSet
- The character setpublic SyndFeedRepresentation(com.sun.syndication.feed.synd.SyndFeed feed)
feed
- The feed (must have a valid feedType!)Method Detail |
---|
public static MediaType getMediaType(String feedType)
feedType
- The source feed type.
public com.sun.syndication.feed.synd.SyndFeed getFeed()
public void write(Writer writer) throws IOException
write
in class Representation
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |