Class RssItem

java.lang.Object
io.micronaut.rss.RssItem
Direct Known Subclasses:
ItunesPodcastEpisode

public class RssItem extends Object
Since:
1.0
Author:
Sergio del Amo
See Also:
  • Constructor Details

    • RssItem

      public RssItem()
  • Method Details

    • getTitle

      public Optional<String> getTitle()
      The title of the item.
      Returns:
      The title of the item
    • getLink

      public Optional<String> getLink()
      The URL of the item.
      Returns:
      The URL of the item.
    • getDescription

      public Optional<String> getDescription()
      The item synopsis.
      Returns:
      The item synopsis.
    • getAuthor

      public Optional<String> getAuthor()
      Email address of the author of the item.
      Returns:
      Email address of the author of the item.
    • getCategory

      public Optional<List<String>> getCategory()
      Includes the item in one or more categories.
      Returns:
      A list of one or more categories where the item is included.
    • getComments

      public Optional<String> getComments()
      URL of a page for comments relating to the item.
      Returns:
      URL of a page for comments relating to the item.
    • getEnclosure

      public Optional<RssItemEnclosure> getEnclosure()
      Describes a media object that is attached to the item.
      Returns:
      Describes a media object that is attached to the item.
    • getGuid

      public Optional<String> getGuid()
      A string that uniquely identifies the item.
      Returns:
      A string that uniquely identifies the item.
    • getPubDate

      public Optional<ZonedDateTime> getPubDate()
      Indicates when the item was published.
      Returns:
      A string indicating when the item was published.
    • getSource

      public Optional<String> getSource()
      The RSS channel that the item came from.
      Returns:
      A string that uniquely identifies the item.
    • setTitle

      public void setTitle(@Nullable @Nullable String title)
      Parameters:
      title - The title of the item.
    • setLink

      public void setLink(@Nullable @Nullable String link)
      Parameters:
      link - The URL of the item.
    • setDescription

      public void setDescription(@Nullable @Nullable String description)
      Parameters:
      description - The item synopsis.
    • setAuthor

      public void setAuthor(@Nullable @Nullable String author)
      Parameters:
      author - mail address
    • setCategory

      public void setCategory(@Nullable @Nullable List<String> category)
      Parameters:
      category - List of categories to include the item.
    • setComments

      public void setComments(@Nullable @Nullable String comments)
      Parameters:
      comments - URL of a page for comments relating to the item.
    • setEnclosure

      public void setEnclosure(@Nullable @Nullable RssItemEnclosure enclosure)
      Parameters:
      enclosure - A media object that is attached to the item.
    • setPubDate

      public void setPubDate(@Nullable @Nullable ZonedDateTime pubDate)
      Parameters:
      pubDate - Date when the item was published.
    • setGuid

      public void setGuid(@Nullable @Nullable String guid)
      Parameters:
      guid - A string that uniquely identifies the item.
    • setSource

      public void setSource(@Nullable @Nullable String source)
      Parameters:
      source - The RSS channel that the item came from.
    • builder

      public static RssItem.Builder builder()
      Returns:
      A Builder to RssItem