Package com.zone.weixin4j.service.impl
Class WxServiceImpl
- java.lang.Object
-
- com.zone.weixin4j.service.impl.WxServiceImpl
-
-
Constructor Summary
Constructors Constructor Description WxServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WeixinResponse
doGet(WeixinRequest request)
处理Get请求protected WeixinResponse
doPost(WeixinRequest request)
处理Post请求protected WeixinResponse
otherwise(WeixinRequest weixinRequest)
WeixinResponse
processRequest(String uri, String encrypt_type, String echostr, String timestamp, String nonce, String signature, String msg_signature, String messageContent, AesToken aesToken, javax.servlet.http.HttpServletRequest request)
处理RequestString
transferResponse(WeixinResponse weixinResponse)
-
-
-
Method Detail
-
processRequest
public WeixinResponse processRequest(String uri, String encrypt_type, String echostr, String timestamp, String nonce, String signature, String msg_signature, String messageContent, AesToken aesToken, javax.servlet.http.HttpServletRequest request) throws WeixinException, HttpResponseException, MessageInterceptorException
处理Request- Specified by:
processRequest
in interfaceWxService
- Throws:
WeixinException
HttpResponseException
MessageInterceptorException
-
doGet
protected WeixinResponse doGet(WeixinRequest request) throws WeixinException, HttpResponseException
处理Get请求- Throws:
WeixinException
HttpResponseException
-
doPost
protected WeixinResponse doPost(WeixinRequest request) throws HttpResponseException, MessageInterceptorException, WeixinException
处理Post请求
-
otherwise
protected WeixinResponse otherwise(WeixinRequest weixinRequest) throws HttpResponseException
- Throws:
HttpResponseException
-
transferResponse
public String transferResponse(WeixinResponse weixinResponse) throws WeixinException
- Specified by:
transferResponse
in interfaceWxService
- Throws:
WeixinException
-
-