Class WxController


  • public abstract class WxController
    extends Object
    Created by Yz on 2017/3/14. WxController Spring 主入口需继承的类 / 模版
    • Constructor Detail

      • WxController

        public WxController()
    • Method Detail

      • doRequest

        protected abstract void doRequest​(javax.servlet.http.HttpServletRequest request,
                                          javax.servlet.http.HttpServletResponse response,
                                          @RequestParam(required=false)
                                          String encrypt_type,
                                          @RequestParam(required=false)
                                          String echostr,
                                          @RequestParam(required=false)
                                          String timestamp,
                                          @RequestParam(required=false)
                                          String nonce,
                                          @RequestParam(required=false)
                                          String signature,
                                          @RequestParam(required=false)
                                          String msg_signature,
                                          @RequestParam(required=false)
                                          String weixin_id)
      • processMessage

        protected void processMessage​(javax.servlet.http.HttpServletRequest request,
                                      javax.servlet.http.HttpServletResponse response,
                                      String encrypt_type,
                                      String echostr,
                                      String timestamp,
                                      String nonce,
                                      String signature,
                                      String msg_signature,
                                      String weixin_id)
      • getMessageContent

        protected String getMessageContent​(javax.servlet.http.HttpServletRequest request)
      • writeMessage

        protected void writeMessage​(String result,
                                    javax.servlet.http.HttpServletResponse response)
      • setWxService

        public void setWxService​(WxService wxService)
      • setWeiXin4jContextAware

        public void setWeiXin4jContextAware​(WeiXin4jContextAware weiXin4jContextAware)