|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SyndFeed
Bean interface for all types of feeds.
It handles all RSS versions and Atom 0.3, it normalizes all info, it may lose information.
Method Summary | |
---|---|
Object |
clone()
Creates a deep clone of the object. |
WireFeed |
createWireFeed()
Creates a real feed containing the information of the SyndFeedImpl. |
WireFeed |
createWireFeed(String feedType)
Creates a real feed containing the information of the SyndFeedImpl. |
String |
getAuthor()
Returns the name of the first feed author in the collection of authors. |
List<SyndPerson> |
getAuthors()
Returns the feed authors. |
List<SyndCategory> |
getCategories()
Returns the feed categories. |
List<SyndPerson> |
getContributors()
Returns the feed author. |
String |
getCopyright()
Returns the feed copyright. |
String |
getDescription()
Returns the feed description. |
SyndContent |
getDescriptionEx()
Returns the feed description as a text construct. |
String |
getEncoding()
Returns the charset encoding of a the feed. |
List<SyndEntry> |
getEntries()
Returns the feed entries. |
String |
getFeedType()
Returns the wire feed type the feed had/will-have when converted from/to a WireFeed. |
Object |
getForeignMarkup()
Returns foreign markup found at channel level. |
SyndImage |
getImage()
Returns the feed image. |
String |
getLanguage()
Returns the feed language. |
String |
getLink()
Returns the feed link. |
List<SyndLink> |
getLinks()
Returns the entry links |
Module |
getModule(String uri)
Returns the module identified by a given URI. |
List<Module> |
getModules()
Returns the feed modules. |
Date |
getPublishedDate()
Returns the feed published date. |
List<String> |
getSupportedFeedTypes()
Returns the real feed types the SyndFeedImpl supports when converting from and to. |
String |
getTitle()
Returns the feed title. |
SyndContent |
getTitleEx()
Returns the feed title. |
String |
getUri()
Returns the feed URI. |
boolean |
isPreservingWireFeed()
|
WireFeed |
originalWireFeed()
Returns the WireFeed this SyndFeed was created from. |
void |
setAuthor(String author)
Sets the feed author. |
void |
setAuthors(List<SyndPerson> authors)
Sets the feed authors. |
void |
setCategories(List<SyndCategory> categories)
Sets the feed categories. |
void |
setContributors(List<SyndPerson> contributors)
Sets the feed author. |
void |
setCopyright(String copyright)
Sets the feed copyright. |
void |
setDescription(String description)
Sets the feed description. |
void |
setDescriptionEx(SyndContent description)
Sets the feed description as a text construct. |
void |
setEncoding(String encoding)
Sets the charset encoding of a the feed. |
void |
setEntries(List<SyndEntry> entries)
Sets the feed entries. |
void |
setFeedType(String feedType)
Sets the wire feed type the feed will-have when coverted to a WireFeed. |
void |
setForeignMarkup(Object foreignMarkup)
Sets foreign markup found at channel level. |
void |
setImage(SyndImage image)
Sets the feed image. |
void |
setLanguage(String language)
Sets the feed language. |
void |
setLink(String link)
Sets the feed link. |
void |
setLinks(List<SyndLink> links)
Sets the entry links. |
void |
setModules(List modules)
Sets the feed modules. |
void |
setPublishedDate(Date publishedDate)
Sets the feed published date. |
void |
setTitle(String title)
Sets the feed title. |
void |
setTitleEx(SyndContent title)
Sets the feed title. |
void |
setUri(String uri)
Sets the feed URI. |
Methods inherited from interface com.sun.syndication.feed.CopyFrom |
---|
copyFrom, getInterface |
Method Detail |
---|
List<String> getSupportedFeedTypes()
WireFeed createWireFeed()
The feed type of the created WireFeed is taken from the SyndFeedImpl feedType property.
WireFeed createWireFeed(String feedType)
feedType
- the feed type for the WireFeed to be created.
WireFeed originalWireFeed()
boolean isPreservingWireFeed()
String getFeedType()
void setFeedType(String feedType)
feedType
- the feed type to set, null if none.String getEncoding()
void setEncoding(String encoding)
encoding
- the charset encoding of the feed.String getUri()
How the feed URI maps to a concrete feed type (RSS or Atom) depends on the concrete feed type. This is explained in detail in Rome documentation, Feed and entry URI mapping.
The returned URI is a normalized URI as specified in RFC 2396bis.
Note: The URI is the unique identifier, in the RSS 2.0/atom case this is the GUID, for RSS 1.0 this is the URI attribute of the item. The Link is the URL that the item is accessible under, the URI is the permanent identifier which the aggregator should use to reference this item. Often the URI will use some standardized identifier scheme such as DOI's so that items can be identified even if they appear in multiple feeds with different "links" (they might be on different hosting platforms but be the same item). Also, though rare, there could be multiple items with the same link but a different URI and associated metadata which need to be treated as distinct entities. In the RSS 1.0 case the URI must be a valid RDF URI reference.
void setUri(String uri)
How the feed URI maps to a concrete feed type (RSS or Atom) depends on the concrete feed type. This is explained in detail in Rome documentation, Feed and entry URI mapping.
Note: The URI is the unique identifier, in the RSS 2.0/atom case this is the GUID, for RSS 1.0 this is the URI attribute of the item. The Link is the URL that the item is accessible under, the URI is the permanent identifier which the aggregator should use to reference this item. Often the URI will use some standardized identifier scheme such as DOI's so that items can be identified even if they appear in multiple feeds with different "links" (they might be on different hosting platforms but be the same item). Also, though rare, there could be multiple items with the same link but a different URI and associated metadata which need to be treated as distinct entities. In the RSS 1.0 case the URI must be a valid RDF URI reference.
uri
- the feed URI to set, null if none.String getTitle()
void setTitle(String title)
title
- the feed title to set, null if none.SyndContent getTitleEx()
void setTitleEx(SyndContent title)
title
- the feed title to set, null if none.String getLink()
Note: The URI is the unique identifier, in the RSS 2.0/atom case this is the GUID, for RSS 1.0 this is the URI attribute of the item. The Link is the URL that the item is accessible under, the URI is the permanent identifier which the aggregator should use to reference this item. Often the URI will use some standardized identifier scheme such as DOI's so that items can be identified even if they appear in multiple feeds with different "links" (they might be on different hosting platforms but be the same item). Also, though rare, there could be multiple items with the same link but a different URI and associated metadata which need to be treated as distinct entities. In the RSS 1.0 case the URI must be a valid RDF URI reference.
void setLink(String link)
Note: The URI is the unique identifier, in the RSS 2.0/atom case this is the GUID, for RSS 1.0 this is the URI attribute of the item. The Link is the URL that the item is accessible under, the URI is the permanent identifier which the aggregator should use to reference this item. Often the URI will use some standardized identifier scheme such as DOI's so that items can be identified even if they appear in multiple feeds with different "links" (they might be on different hosting platforms but be the same item). Also, though rare, there could be multiple items with the same link but a different URI and associated metadata which need to be treated as distinct entities. In the RSS 1.0 case the URI must be a valid RDF URI reference.
link
- the feed link to set, null if none.List<SyndLink> getLinks()
void setLinks(List<SyndLink> links)
links
- the entry links to set, null if none.String getDescription()
void setDescription(String description)
description
- the feed description to set, null if none.SyndContent getDescriptionEx()
void setDescriptionEx(SyndContent description)
description
- the feed description to set, null if none.Date getPublishedDate()
This method is a convenience method, it maps to the Dublin Core module date.
void setPublishedDate(Date publishedDate)
This method is a convenience method, it maps to the Dublin Core module date.
publishedDate
- the feed published date to set, null if none.List<SyndPerson> getAuthors()
For Atom feeds, this returns the authors as a list of SyndPerson objects, for RSS feeds this method is a convenience method, it maps to the Dublin Core module creator.
void setAuthors(List<SyndPerson> authors)
For Atom feeds, this sets the authors as a list of SyndPerson objects, for RSS feeds this method is a convenience method, it maps to the Dublin Core module creator.
authors
- the feed authors to set, null if none.String getAuthor()
For Atom feeds, this returns the authors as a list of SyndPerson objects, for RSS feeds this method is a convenience method, it maps to the Dublin Core module creator.
void setAuthor(String author)
For Atom feeds, this sets the feed author's name, for RSS feeds this method is a convenience method, it maps to the Dublin Core module creator.
author
- the feed author to set, null if none.List<SyndPerson> getContributors()
For Atom feeds, this returns the contributors as a list of SyndPerson objects
void setContributors(List<SyndPerson> contributors)
Returns contributors as a list of SyndPerson objects.
contributors
- the feed contributors to set, null if none.String getCopyright()
This method is a convenience method, it maps to the Dublin Core module rights.
void setCopyright(String copyright)
This method is a convenience method, it maps to the Dublin Core module rights.
copyright
- the feed copyright to set, null if none.SyndImage getImage()
void setImage(SyndImage image)
image
- the feed image to set, null if none.List<SyndCategory> getCategories()
This method is a convenience method, it maps to the Dublin Core module subjects.
void setCategories(List<SyndCategory> categories)
This method is a convenience method, it maps to the Dublin Core module subjects.
categories
- the list of SyndCategoryImpl elements with the feed categories to set,
an empty list or null if none.List<SyndEntry> getEntries()
void setEntries(List<SyndEntry> entries)
entries
- the list of SyndEntryImpl elements with the feed entries to set,
an empty list or null if none.String getLanguage()
This method is a convenience method, it maps to the Dublin Core module language.
void setLanguage(String language)
This method is a convenience method, it maps to the Dublin Core module language.
language
- the feed language to set, null if none.Module getModule(String uri)
getModule
in interface Extendable
uri
- the URI of the ModuleImpl.
List<Module> getModules()
getModules
in interface Extendable
void setModules(List modules)
setModules
in interface Extendable
modules
- the list of ModuleImpl elements with the feed modules to set,
an empty list or null if none.Object getForeignMarkup()
void setForeignMarkup(Object foreignMarkup)
foreignMarkup
- Opaque object to discourage useObject clone() throws CloneNotSupportedException
CloneNotSupportedException
- thrown if an element of the object cannot be cloned.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |