java.lang.Object
net.i2p.router.web.HelperBase
net.i2p.router.web.NewsFeedHelper

public class NewsFeedHelperextends HelperBase
HTML-formatted full news entries.
  • Field Details

    • _start

      private int _start
      Index of the first item to show.
    • _limit

      private int _limit
      How many items to show.
  • Constructor Details

    • NewsFeedHelper

      public NewsFeedHelper()
      Create the helper; the superclass constructor sets up the request context.
  • Method Details

    • setLimit

      public void setLimit(int limit)
      Less than or equal to zero means all.
      Parameters:
      limit - less than or equal to zero means all
    • setStart

      public void setStart(int start)
      Starting index.
      Parameters:
      start - the starting index
    • getEntries

      public String getEntries()
      Get the formatted HTML entries.
      Returns:
      non-null, "" if none
    • getEntries

      static String getEntries(I2PAppContext ctx, int start, int max, long ageLimit)
      Get the formatted HTML entries.
      Parameters:
      ctx - the router context
      start - the starting index
      max - less than or equal to zero means all
      ageLimit - time before now, less than or equal to zero means all (after the first)
      Returns:
      non-null, "" if none