@Override public String fileUrl(PageTitle pageTitle, int width, int height) { String title = StringTools.safeFilename(pageTitle.getNormalizedFullTitle()); FileUrlKey key = new FileUrlKey(title, width, height); return fileUrls.get(key); }
@Override public FullPage retrieveWikitext(ExpansionFrame expansionFrame, PageTitle pageTitle) { String title = StringTools.safeFilename(pageTitle.getNormalizedFullTitle()); ArticleDesc article = articles.get(title); if (article == null) return null; PageId pageId = new PageId(pageTitle, article.getRevision()); return new FullPage(pageId, article.getContent()); }