com.github.sd4324530.fastweixin.servlet
类 WeixinServletSupport

java.lang.Object
  继承者 javax.servlet.GenericServlet
      继承者 javax.servlet.http.HttpServlet
          继承者 com.github.sd4324530.fastweixin.servlet.WeixinServletSupport
所有已实现的接口:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public abstract class WeixinServletSupport
extends javax.servlet.http.HttpServlet

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

从以下版本开始:
1.1
作者:
peiyu
另请参见:
序列化表格

构造方法摘要
WeixinServletSupport()
           
 
方法摘要
protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          重写servlet中的get方法,用于处理微信服务器绑定,置为final方法,用户已经无需重写这个方法啦
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          重写servlet中的post方法,用于接收微信服务器发来的消息,置为final方法,用户已经无需重写这个方法啦
protected abstract  WeixinSupport getWeixinSupport()
          强制要求servlet框架开发者自行实现weixinSupport类
 
从类 javax.servlet.http.HttpServlet 继承的方法
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
从类 javax.servlet.GenericServlet 继承的方法
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

WeixinServletSupport

public WeixinServletSupport()
方法详细信息

getWeixinSupport

protected abstract WeixinSupport getWeixinSupport()
强制要求servlet框架开发者自行实现weixinSupport类

返回:
用户自行实现的weixinSupport对象

doGet

protected final void doGet(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws javax.servlet.ServletException,
                           IOException
重写servlet中的get方法,用于处理微信服务器绑定,置为final方法,用户已经无需重写这个方法啦

覆盖:
javax.servlet.http.HttpServlet 中的 doGet
参数:
request - http请求对象
response - http响应对象
抛出:
javax.servlet.ServletException - servlet异常
IOException - IO异常

doPost

protected final void doPost(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response)
                     throws javax.servlet.ServletException,
                            IOException
重写servlet中的post方法,用于接收微信服务器发来的消息,置为final方法,用户已经无需重写这个方法啦

覆盖:
javax.servlet.http.HttpServlet 中的 doPost
参数:
request - http请求对象
response - http响应对象
抛出:
javax.servlet.ServletException - servlet异常
IOException - IO异常


Copyright © 2017. All rights reserved.