我按照nutzbook上配置动作链的介绍(http://nutzbook.wendal.net/dev_prepare/action_chain.html)配置了一个LogTimeProcessor,我想把接收到的post的参数也打印出来,但是打印的结果是空的。自定义的Processor放在了MethodInvokeProcessor之前。应该怎么取参数呢?
public void process(ActionContext ac) throws Throwable {
Stopwatch sw = Stopwatch.begin();
try {
doNext(ac);
} finally {
sw.stop();
if (log.isDebugEnabled()) {
HttpServletRequest req = ac.getRequest();
log.debugf("[%-4s]URI=%s %sms", req.getMethod(), req.getRequestURI(), sw.getDuration());
log.debugf("parms=%s", Json.toJson(req.getParameterMap()));
}
}
}