Esempio n. 1
0
  public Response makeResponse(FitNesseContext context, Request request) throws Exception {
    WikiPage contextPage = getContextPage(context, request.getResource());
    WikiPage recentChangesPage = context.root.getChildPage(RecentChanges.RECENT_CHANGES);

    feed = new RssFeed(getConfiguredRssLinkPrefixFrom(contextPage));

    buildItemReportIfRecentChangesExists(recentChangesPage, request.getResource());

    return feed.asResponse();
  }
Esempio n. 2
0
 private void buildItemReport(String resource, RecentChangesPage recentChangesPage)
     throws Exception {
   for (RecentChangesPageEntry line : recentChangesPage.getLinesApplicableTo(resource)) {
     feed.addItem(line);
   }
 }