public void doMessage(WeixinMessage wxMsg, HttpServletRequest request, HttpServletResponse response) throws Exception {
WeixinMessageContext.setWeixinMessage(wxMsg);
WeixinMessageContext.setQueryString(request.getQueryString());
response.setContentType("text/xml; charset=UTF-8");
request.setAttribute("wxMsg", wxMsg);
RewrittenUrl rewrittenUrl = urlRewriter.processRequest(wxMsg, request, response);
if (rewrittenUrl != null) {
rewrittenUrl.doRewrite(request, response);
}
}