Class RssChannel.Builder

java.lang.Object
io.micronaut.rss.RssChannel.Builder
Enclosing class:
RssChannel

public static final class RssChannel.Builder extends Object
RSS Channel Builder.
  • Method Details

    • language

      @NonNull public @NonNull RssChannel.Builder language(RssLanguage language)
      Parameters:
      language - The language the channel is written in.
      Returns:
      The Builder.
    • copyright

      @NonNull public @NonNull RssChannel.Builder copyright(String copyright)
      Parameters:
      copyright - Copyright notice for content in the channel.
      Returns:
      The Builder.
    • managingEditor

      @NonNull public @NonNull RssChannel.Builder managingEditor(String managingEditor)
      Parameters:
      managingEditor - Email address for person responsible for editorial content.
      Returns:
      The Builder.
    • webMaster

      @NonNull public @NonNull RssChannel.Builder webMaster(String webMaster)
      Parameters:
      webMaster - Email address for person responsible for technical issues relating to channel.
      Returns:
      The Builder.
    • pubDate

      @NonNull public @NonNull RssChannel.Builder pubDate(ZonedDateTime pubDate)
      Parameters:
      pubDate - The publication date for the content in the channel.
      Returns:
      The Builder.
    • lastBuildDate

      @NonNull public @NonNull RssChannel.Builder lastBuildDate(ZonedDateTime lastBuildDate)
      Parameters:
      lastBuildDate - The last time the content of the channel changed.
      Returns:
      The Builder.
    • category

      @NonNull public @NonNull RssChannel.Builder category(List<List<String>> category)
      Parameters:
      category - a category to associate the RSS Channel with.
      Returns:
      The Builder.
    • generator

      @NonNull public @NonNull RssChannel.Builder generator(String generator)
      Parameters:
      generator - A string indicating the program used to generate the channel.
      Returns:
      The Builder.
    • docs

      @NonNull public @NonNull RssChannel.Builder docs(String docs)
      Parameters:
      docs - A URL that points to the documentation for the format used in the RSS file.
      Returns:
      The Builder.
    • cloud

      @NonNull public @NonNull RssChannel.Builder cloud(String cloud)
      Parameters:
      cloud - A cloud.
      Returns:
      The Builder.
    • ttl

      @NonNull public @NonNull RssChannel.Builder ttl(Integer ttl)
      Parameters:
      ttl - time to live expressed in minutes.
      Returns:
      the Builder
    • image

      @NonNull public @NonNull RssChannel.Builder image(RssChannelImage image)
      Parameters:
      image - GIF, JPEG or PNG image that can be displayed with the channel
      Returns:
      The Builder.
    • rating

      @NonNull public @NonNull RssChannel.Builder rating(String rating)
      Parameters:
      rating - The PICS rating for the channel.
      Returns:
      The Builder.
    • textInput

      @NonNull public @NonNull RssChannel.Builder textInput(RssTextInput textInput)
      Parameters:
      textInput - a text input box
      Returns:
      The Builder.
    • skipHours

      @NonNull public @NonNull RssChannel.Builder skipHours(List<RssSkipHours> skipHours)
      Parameters:
      skipHours - a List of RssSkipHours.
      Returns:
      The Builder.
    • skipDays

      @NonNull public @NonNull RssChannel.Builder skipDays(List<RssSkipDays> skipDays)
      Parameters:
      skipDays - a List of RssSkipDays.
      Returns:
      The Builder.
    • item

      @NonNull public @NonNull RssChannel.Builder item(RssItem item)
      Parameters:
      item - An RSS Item.
      Returns:
      The Builder.
    • build

      @NonNull public @NonNull RssChannel build()
      Returns:
      A RSS Channel.