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