Class Entry
An Atom entry is a discrete item of content within a feed, such as a blog post, news article, podcast episode, or other individual piece of content. Entries can exist within a feed or be published as standalone Atom documents.
Each entry contains metadata about the content (title, authors, timestamps) and optionally the content itself or links to it. Entries are designed to be independently meaningful and may be consumed separately from their containing feed.
Schema
atomEntry = element atom:entry { atomCommonAttributes, (atomAuthor* & atomCategory* & atomContent? & atomContributor* & atomId & atomLink* & atomPublished? & atomRights? & atomSource? & atomSummary? & atomTitle & atomUpdated & extensionElement*) }
Required Elements:
Per RFC 4287, the following elements are required in an entry:
- atom:id - A permanent, universally unique identifier for the entry.
- atom:title - A human-readable title for the entry.
- atom:updated - The most recent instant in time when the entry was modified.
Recommended Elements:
The following elements are recommended:
- atom:author - Authors of the entry (required if feed doesn't have authors).
- atom:content or- atom:link[@rel="alternate"] - Either content or alternate link.
- atom:summary - Brief summary of the entry (required if content is not inline).
Example:
   
Specification:
 Represents an 
See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionBean property getter:content .Bean property getter:published .Bean property getter:source .Bean property getter:summary .setAuthors(Person... value) Bean property setter:authors .Bean property setter:base .setCategories(Category... value) Bean property setter:categories .setContent(Content value) Bean property setter:content .setContributors(Person... value) Bean property setter:contributors .Bean property fluent setter:id .Bean property setter:id .Bean property setter:lang .Bean property setter:links .setPublished(String value) Bean property fluent setter:published .setPublished(Calendar value) Bean property setter:published .Bean property fluent setter:rights .Bean property setter:rights .Bean property setter:source .setSummary(String value) Bean property fluent setter:summary .setSummary(Text value) Bean property setter:summary .Bean property fluent setter:title .Bean property setter:title .setUpdated(String value) Bean property fluent setter:updated .setUpdated(Calendar value) Bean property setter:updated .Methods inherited from class org.apache.juneau.bean.atom.CommonEntrygetAuthors, getCategories, getContributors, getId, getLinks, getRights, getTitle, getUpdated
- 
Constructor Details- 
EntryNormal constructor.- Parameters:
- id- The ID of this entry.
- title- The title of this entry.
- updated- The updated timestamp of this entry.
 
- 
EntryNormal constructor.- Parameters:
- id- The ID of this entry.
- title- The title of this entry.
- updated- The updated timestamp of this entry.
 
- 
Entrypublic Entry()Bean constructor.
 
- 
- 
Method Details- 
getContentBean property getter:content .Returns the content of this entry, or a link to it. The content element contains or links to the complete content of the entry. It can contain text, HTML, XHTML, or other media types. When not present, the entry must have an alternate link pointing to the content. - Returns:
- The property value, or null if it is not set.
 
- 
setContentBean property setter:content .Sets the content of this entry. Examples:// Plain text content Entryentry =new Entry(...) .setContent(new Content("text" ) .setText("This is plain text content" ) );// HTML content Entryentry2 =new Entry(...) .setContent(new Content("html" ) .setText("<p>This is <strong>HTML</strong> content</p>" ) );// Link to external content Entryentry3 =new Entry(...) .setContent(new Content() .setType("video/mp4" ) .setSrc("http://example.org/video.mp4" ) );- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object.
 
- 
getPublishedBean property getter:published .Returns the time when this entry was first published or made available. This differs from the updated time in that it represents the original publication date, which typically doesn't change even when the entry is modified. The updated timestamp reflects the last modification time. - Returns:
- The property value, or null if it is not set.
 
- 
setPublishedBean property setter:published .Sets the time when this entry was first published or made available. Example:Entry entry =new Entry(...) .setPublished(Calendar.getInstance ());- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object.
 
- 
setPublishedBean property fluent setter:published .Sets the time when this entry was first published using an ISO-8601 date string. Example:Entry entry =new Entry(...) .setPublished("2024-01-15T10:00:00Z" );- Parameters:
- value- The new value for this property in ISO-8601 format.
 Can be- null to unset the property.
- Returns:
- This object.
 
- 
getSourceBean property getter:source .Returns metadata about the source feed if this entry was copied from another feed. When an entry is copied or aggregated from another feed, the source element preserves metadata from the original feed. This is useful for attribution and tracking the origin of syndicated content. - Returns:
- The property value, or null if it is not set.
 
- 
setSourceBean property setter:source .Sets metadata about the source feed if this entry was copied from another feed. Example:Entry entry =new Entry(...) .setSource(new Source() .setId("tag:originalblog.example.com,2024:feed" ) .setTitle("Original Blog" ) .setUpdated("2024-01-15T12:00:00Z" ) );- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object.
 
- 
getSummaryBean property getter:summary .Returns a short summary, abstract, or excerpt of the entry. The summary is typically used in feed readers to give users a preview of the entry's content without loading the full content. It's especially useful when content is not inline or is very long. - Returns:
- The property value, or null if it is not set.
 
- 
setSummaryBean property setter:summary .Sets a short summary, abstract, or excerpt of the entry. Example:Entry entry =new Entry(...) .setSummary(new Text("text" ) .setText("This entry discusses the benefits of Atom feeds..." ) );- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object.
 
- 
setSummaryBean property fluent setter:summary .Sets a short summary, abstract, or excerpt of the entry as plain text. - Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object.
 
- 
setBaseDescription copied from class:CommonBean property setter:base .Sets the base URI for resolving relative URI references (xml:base attribute). The value can be of any of the following types: URI,URL,String. Strings must be valid URIs.Example:Feed feed =new Feed(...) .setBase("http://example.org/" );- Overrides:
- setBasein class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object.
 
- 
setLangDescription copied from class:CommonBean property setter:lang .Sets the natural language of the element's content (xml:lang attribute). Example:Text title =new Text("text" ) .setText("Mon Blog" ) .setLang("fr" );- Overrides:
- setLangin class- CommonEntry
- Parameters:
- value- The new value for this property (e.g., "en", "fr", "de", "en-US").
 Can be- null to unset the property.
- Returns:
- This object.
 
- 
setAuthorsDescription copied from class:CommonEntryBean property setter:authors .The list of authors for this object. - Overrides:
- setAuthorsin class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
setCategoriesDescription copied from class:CommonEntryBean property setter:categories .The list of categories of this object. - Overrides:
- setCategoriesin class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
setContributorsDescription copied from class:CommonEntryBean property setter:contributors .The list of contributors of this object. - Overrides:
- setContributorsin class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
setIdDescription copied from class:CommonEntryBean property fluent setter:id .The ID of this object. - Overrides:
- setIdin class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object.
 
- 
setIdDescription copied from class:CommonEntryBean property setter:id .The ID of this object. - Overrides:
- setIdin class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
setLinksDescription copied from class:CommonEntryBean property setter:links .The list of links of this object. - Overrides:
- setLinksin class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
setRightsDescription copied from class:CommonEntryBean property fluent setter:rights .The rights statement of this object. - Overrides:
- setRightsin class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object.
 
- 
setRightsDescription copied from class:CommonEntryBean property setter:rights .The rights statement of this object. - Overrides:
- setRightsin class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
setTitleDescription copied from class:CommonEntryBean property fluent setter:title .The title of this object. - Overrides:
- setTitlein class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object.
 
- 
setTitleDescription copied from class:CommonEntryBean property setter:title .The title of this object. - Overrides:
- setTitlein class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
setUpdatedDescription copied from class:CommonEntryBean property fluent setter:updated .The update timestamp of this object. - Overrides:
- setUpdatedin class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object.
 
- 
setUpdatedDescription copied from class:CommonEntryBean property setter:updated .The update timestamp of this object. - Overrides:
- setUpdatedin class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
 
-