public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest req = (HttpServletRequest) request; HttpServletResponse res = (HttpServletResponse) response; UrlPipeline p = find(req); if (p != null) p.service(req, res); else chain.doFilter(req, res); }
@Override void service(HttpServletRequest req, HttpServletResponse rsp) throws ServletException, IOException { String curInfo = req.getPathInfo(); String newPath = req.getServletPath() + curInfo; String newInfo = curInfo.substring(0, curInfo.length() - suffixLen); super.service(new WrappedRequest(req, newPath, newInfo), rsp); }
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest req = (HttpServletRequest) request; HttpServletResponse res = (HttpServletResponse) response; UrlPipeline p = find(req); if (p != null) p.service(req, res); else chain.doFilter(req, res); }
@Override void service(HttpServletRequest req, HttpServletResponse rsp) throws ServletException, IOException { String curInfo = req.getPathInfo(); String newPath = req.getServletPath() + curInfo; String newInfo = curInfo.substring(0, curInfo.length() - suffixLen); super.service(new WrappedRequest(req, newPath, newInfo), rsp); }