Exemple #1
0
 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);
 }
Exemple #2
0
 protected String getPath(HttpRequest req) {
   return ommitParam(req.getPath());
 }
Exemple #3
0
 protected String getTitle(HttpRequest req) {
   return getTitle(ommitParam(req.getPath()));
 }