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 WeixinResponsedoGet(WeixinRequest request)处理Get请求protected WeixinResponsedoPost(WeixinRequest request)处理Post请求protected WeixinResponseotherwise(WeixinRequest weixinRequest)WeixinResponseprocessRequest(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)处理RequestStringtransferResponse(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:
processRequestin interfaceWxService- Throws:
WeixinExceptionHttpResponseExceptionMessageInterceptorException
-
doGet
protected WeixinResponse doGet(WeixinRequest request) throws WeixinException, HttpResponseException
处理Get请求- Throws:
WeixinExceptionHttpResponseException
-
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:
transferResponsein interfaceWxService- Throws:
WeixinException
-
-