com.github.sd4324530.fastweixin.servlet
类 WeixinControllerSupport

java.lang.Object
  继承者 com.github.sd4324530.fastweixin.servlet.WeixinSupport
      继承者 com.github.sd4324530.fastweixin.servlet.WeixinControllerSupport

@Controller
public abstract class WeixinControllerSupport
extends WeixinSupport

微信公众平台交互操作基类,提供几乎所有微信公众平台交互方式 基于springmvc框架,方便使用此框架的项目集成

作者:
peiyu

构造方法摘要
WeixinControllerSupport()
           
 
方法摘要
protected  String bind(javax.servlet.http.HttpServletRequest request)
          绑定微信服务器
protected  void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          微信消息交互处理
 
从类 com.github.sd4324530.fastweixin.servlet.WeixinSupport 继承的方法
bindServer, callBackAllMessage, getAESKey, getAppId, getToken, hadnleShortVideoMsg, handleDefaultEvent, handleDefaultMsg, handleImageMsg, handleLinkMsg, handleLocationEvent, handleLocationMsg, handleMenuClickEvent, handleMenuViewEvent, handlePSendPicsInfoEvent, handleQrCodeEvent, handleScanCodeEvent, handleSubscribe, handleTemplateMsgEvent, handleTextMsg, handleUnsubscribe, handleVideoMsg, handleVoiceMsg, initEventHandles, initMessageHandles, isLegal, processRequest
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

WeixinControllerSupport

public WeixinControllerSupport()
方法详细信息

bind

@RequestMapping(method=GET)
@ResponseBody
protected final String bind(javax.servlet.http.HttpServletRequest request)
绑定微信服务器

参数:
request - 请求
返回:
响应内容

process

@RequestMapping(method=POST)
protected final void process(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response)
                      throws javax.servlet.ServletException,
                             IOException
微信消息交互处理

参数:
request - http 请求对象
response - http 响应对象
抛出:
javax.servlet.ServletException - 异常
IOException - IO异常


Copyright © 2017. All rights reserved.