/** * Delegate the request processing to an instance of {@link CometSupport} * @param req the {@link HttpServletRequest} * @param res the {@link HttpServletResponse} * @throws java.io.IOException * @throws javax.servlet.ServletException */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { doCometSupport(req,res); }
/** * Normal doFilter invokation. * * @param request * @param response * @param chain * @throws IOException * @throws ServletException */ public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { Action a = as.doCometSupport((HttpServletRequest)request,(HttpServletResponse)response); if (a == null || a.type != Action.TYPE.SUSPEND) { chain.doFilter(request, response); } }