Class SyndicationService

java.lang.Object
org.deltava.service.WebService
org.deltava.service.rss.SyndicationService
Direct Known Subclasses:
CoolerSyndicationService, EventSyndicationService, NewsSyndicationService, NoticeSyndicationService

abstract class SyndicationService extends WebService
An abstract Web Service to support RSS feed generation.
Since:
12.2
Version:
12.2
Author:
Luke
  • Constructor Details

    • SyndicationService

      SyndicationService()
  • Method Details

    • getCount

      protected static int getCount(ServiceContext sctxt, int defaultValue)
      Helper method to return the number of entries to display.
      Parameters:
      sctxt - the Service Context
      defaultValue - the default number of entries
      Returns:
      the value of the count parameter, or defaultVlue
    • initRSS

      protected static Document initRSS(String title, String desc, String url)
      Creates the initial RSS document.
      Parameters:
      title - the RSS feed title
      desc - the RSS feed description
      url - the RSS feed URL
      Returns:
      a Document with the RSS header