protected void setBody(HttpRequest req, Map<String, Object> root) { String title = getTitle(ommitParam(req.getPath())); String text = wikiRender.parse(req.getAttribute("wikitext")); root.put("text", text); saveText(title, req.getAttribute("wikitext")); wikiNameMgr.addName(title); }
protected String getPath(HttpRequest req) { return ommitParam(req.getPath()); }
protected String getTitle(HttpRequest req) { return getTitle(ommitParam(req.getPath())); }