Package com.zone.weixin4j.controller
Class WxController
- java.lang.Object
-
- com.zone.weixin4j.controller.WxController
-
public abstract class WxController extends Object
Created by Yz on 2017/3/14. WxController Spring 主入口需继承的类 / 模版
-
-
Field Summary
Fields Modifier and Type Field Description protected WeiXin4jContextAware
weiXin4jContextAware
protected WxService
wxService
-
Constructor Summary
Constructors Constructor Description WxController()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
doRequest(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)
protected String
getMessageContent(javax.servlet.http.HttpServletRequest request)
WeiXin4jContextAware
getWeiXin4jContextAware()
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)
void
setWeiXin4jContextAware(WeiXin4jContextAware weiXin4jContextAware)
void
setWxService(WxService wxService)
protected void
writeMessage(String result, javax.servlet.http.HttpServletResponse response)
-
-
-
Field Detail
-
wxService
@Autowired protected WxService wxService
-
weiXin4jContextAware
@Autowired protected WeiXin4jContextAware weiXin4jContextAware
-
-
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)
-
getWeiXin4jContextAware
public WeiXin4jContextAware getWeiXin4jContextAware()
-
-