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(); }
private void buildItemReport(String resource, RecentChangesPage recentChangesPage) throws Exception { for (RecentChangesPageEntry line : recentChangesPage.getLinesApplicableTo(resource)) { feed.addItem(line); } }