Class Source
- java.lang.Object
-
- org.jboss.resteasy.plugins.providers.atom.CommonAttributes
-
- org.jboss.resteasy.plugins.providers.atom.Source
-
- Direct Known Subclasses:
Feed
public class Source extends CommonAttributes
Per RFC4287:
If an atom:entry is copied from one feed into another feed, then the source atom:feed's metadata (all child elements of atom:feed other than the atom:entry elements) MAY be preserved within the copied entry by adding an atom:source child element, if it is not already present in the entry, and including some or all of the source feed's Metadata elements as the atom:source element's children. Such metadata SHOULD be preserved if the source atom:feed contains any of the child elements atom:author, atom:contributor, atom:rights, or atom:category and those child elements are not present in the source atom:entry. atomSource = element atom:source { atomCommonAttributes, (atomAuthor* & atomCategory* & atomContributor* & atomGenerator? & atomIcon? & atomId? & atomLink* & atomLogo? & atomRights? & atomSubtitle? & atomTitle? & atomUpdated? & extensionElement*) } The atom:source element is designed to allow the aggregation of entries from different feeds while retaining information about an entry's source feed. For this reason, Atom Processors that are performing such aggregation SHOULD include at least the required feed-level Metadata elements (atom:id, atom:title, and atom:updated) in the atom:source element.- Version:
- $Revision: 1 $
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Person>authorsprivate java.util.List<Category>categoriesprivate java.util.List<Person>contributorsprivate Generatorgeneratorprivate java.net.URIiconprivate java.net.URIidprivate java.util.List<Link>linksprivate java.net.URIlogoprivate java.lang.Stringrightsprivate java.lang.Stringsubtitleprivate java.lang.Stringtitleprivate java.util.Dateupdated
-
Constructor Summary
Constructors Constructor Description Source()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Person>getAuthors()java.util.List<Category>getCategories()java.util.List<Person>getContributors()GeneratorgetGenerator()java.net.URIgetIcon()java.net.URIgetId()LinkgetLinkByRel(java.lang.String name)java.util.List<Link>getLinks()java.net.URIgetLogo()java.lang.StringgetRights()java.lang.StringgetSubtitle()java.lang.StringgetTitle()java.util.DategetUpdated()voidsetGenerator(Generator generator)voidsetIcon(java.net.URI icon)voidsetId(java.net.URI id)voidsetLogo(java.net.URI logo)voidsetRights(java.lang.String rights)voidsetSubtitle(java.lang.String subtitle)voidsetTitle(java.lang.String title)voidsetUpdated(java.util.Date updated)-
Methods inherited from class org.jboss.resteasy.plugins.providers.atom.CommonAttributes
getBase, getExtensionAttributes, getLanguage, setBase, setLanguage
-
-
-
-
Field Detail
-
authors
private java.util.List<Person> authors
-
categories
private java.util.List<Category> categories
-
contributors
private java.util.List<Person> contributors
-
generator
private Generator generator
-
id
private java.net.URI id
-
title
private java.lang.String title
-
updated
private java.util.Date updated
-
links
private java.util.List<Link> links
-
icon
private java.net.URI icon
-
logo
private java.net.URI logo
-
rights
private java.lang.String rights
-
subtitle
private java.lang.String subtitle
-
-
Method Detail
-
getAuthors
public java.util.List<Person> getAuthors()
-
getContributors
public java.util.List<Person> getContributors()
-
getId
public java.net.URI getId()
-
setId
public void setId(java.net.URI id)
-
getTitle
public java.lang.String getTitle()
-
setTitle
public void setTitle(java.lang.String title)
-
getUpdated
public java.util.Date getUpdated()
-
setUpdated
public void setUpdated(java.util.Date updated)
-
getLinkByRel
public Link getLinkByRel(java.lang.String name)
-
getLinks
public java.util.List<Link> getLinks()
-
getCategories
public java.util.List<Category> getCategories()
-
getGenerator
public Generator getGenerator()
-
setGenerator
public void setGenerator(Generator generator)
-
getIcon
public java.net.URI getIcon()
-
setIcon
public void setIcon(java.net.URI icon)
-
getLogo
public java.net.URI getLogo()
-
setLogo
public void setLogo(java.net.URI logo)
-
getRights
public java.lang.String getRights()
-
setRights
public void setRights(java.lang.String rights)
-
getSubtitle
public java.lang.String getSubtitle()
-
setSubtitle
public void setSubtitle(java.lang.String subtitle)
-
-