Class RssItem

java.lang.Object
com.jalios.util.RssItem

public class RssItem extends Object
This class implements a RSS Channel's item parser/container.
Author:
Olivier Dedieu
  • Constructor Details

    • RssItem

      public RssItem()
      Creates a new RssItem.
    • RssItem

      public RssItem(com.sun.syndication.feed.synd.SyndEntry entry)
      Create a new RssItem and fill this object with the data containing the SyndEntry
      Parameters:
      entry - the SyndEntry to parse
    • RssItem

      public RssItem(org.jdom.Element element)
      Create a new RssItem and fill this object with the data containing the DOM element
      Parameters:
      element - the DOM element to parse
  • Method Details

    • getTitle

      public String getTitle()
      Get the value of title.
      Returns:
      Value of title.
    • setTitle

      public void setTitle(String v)
      Set the value of title.
      Parameters:
      v - Value to assign to title.
    • getLink

      public String getLink()
      Get the value of link.
      Returns:
      Value of link.
    • setLink

      public void setLink(String v)
      Set the value of link.
      Parameters:
      v - Value to assign to link.
    • getDescription

      public String getDescription()
      Get the value of description.
      Returns:
      Value of description.
    • setDescription

      public void setDescription(String v)
      Set the value of description.
      Parameters:
      v - Value to assign to description.
    • getAuthor

      public String getAuthor()
      Returns:
      Returns the author.
    • setAuthor

      public void setAuthor(String author)
      Parameters:
      author - The author to set.
    • getCategory

      @Deprecated public String getCategory()
      Deprecated.
      use getCategories() instead
      This method is deprecated. GetCategories must be used instead. The first element of getCategories list will be returned.
      Returns:
      Returns the category.
    • setCategory

      @Deprecated public void setCategory(String category)
      Deprecated.
      use getCategories() instead
      This method is deprecated. this method add a category to categories list.
      Parameters:
      category - The category to set.
    • getCategories

      public List<String> getCategories()
      Returns:
      the categories
    • setCategories

      public void setCategories(List<String> categories)
      Parameters:
      categories - the categories to set
    • getComments

      public String getComments()
      Returns:
      Returns the comments.
    • setComments

      public void setComments(String comments)
      Parameters:
      comments - The comments to set.
    • getEnclosures

      public List<Enclosure> getEnclosures()
      Returns:
      the enclosures
    • setEnclosures

      public void setEnclosures(List<Enclosure> enclosures)
      Parameters:
      enclosures - the enclosures to set
    • getEnclosureLength

      public int getEnclosureLength()
      This method is deprecated. The first enclosure is used for this method.
      Returns:
      Returns the enclosureLength.
    • setEnclosureLength

      @Deprecated public void setEnclosureLength(int enclosureLength)
      Deprecated.
      setEnclosures(List) must be used instead
      This method is deprecated. this method do nothing
      Parameters:
      enclosureLength - The enclosureLength to set.
    • getEnclosureType

      @Deprecated public String getEnclosureType()
      Deprecated.
      the type must be retrieved from getEnclosures() list instead
      This method is deprecated. The first enclosure is used for this method.
      Returns:
      Returns the enclosureType.
    • setEnclosureType

      @Deprecated public void setEnclosureType(String enclosureType)
      Deprecated.
      setEnclosures(List) must be used instead
      This method is deprecated. this method do nothing
      Parameters:
      enclosureType - The enclosureType to set.
    • getEnclosureURL

      @Deprecated public String getEnclosureURL()
      Deprecated.
      the URL must be retrieved from getEnclosures() list instead
      This method is deprecated. The first enclosure is used for this method.
      Returns:
      Returns the enclosureURL.
    • setEnclosureURL

      @Deprecated public void setEnclosureURL(String enclosureURL)
      Deprecated.
      setEnclosures(List) must be used instead
      This method is deprecated. this method do nothing
      Parameters:
      enclosureURL - The enclosureURL to set.
    • getGuid

      public String getGuid()
      Returns:
      Returns the guid.
    • setGuid

      public void setGuid(String guid)
      Parameters:
      guid - The guid to set.
    • getParsedPubDate

      @Deprecated public Date getParsedPubDate()
      Deprecated.
      Retrieve the pubDate as a Date object.
      Returns:
      a Date or null if the pubDate could not be parsed.
      Since:
      jcms-6.1
    • getSource

      public String getSource()
      Returns:
      Returns the source.
    • setSource

      public void setSource(String source)
      Parameters:
      source - The source to set.
    • getPublicationDate

      public Date getPublicationDate()
      Returns:
      the publicationDate
    • setPublicationDate

      public void setPublicationDate(Date publicationDate)
      Parameters:
      publicationDate - the publicationDate to set
    • getPubDate

      @Deprecated public String getPubDate()
      Deprecated.
      use getPublicationDate() instead and reformat the date
      Get the value of pubDate. This method is deprecated. getPublicationDate must be use instead This method returns date in ISO 8601 format
      Returns:
      Value of pubDate.
    • setPubDate

      @Deprecated public void setPubDate(String v)
      Deprecated.
      Set the value of pubDate. This method is deprecated and setPublication(Date date) must be use instead
      Parameters:
      v - Value to assign to pubDate.