/** * {@inheritDoc} * * This implementation tests the request and response to see if they are * instances of {@link HttpServletRequest} and {@link HttpServletResponse} * respectively. If they are then they are passed to * {@link #doFilter(HttpServletRequest, HttpServletResponse, FilterChain)}. * If not, a {@link ServletException} is thrown. * * @throws ServletException If either the request or response are not of the * expected types or any other error occurs */ @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { if (!(request instanceof HttpServletRequest)) { throw new ServletException(request + " not HttpServletRequest"); } if (!(response instanceof HttpServletResponse)) { throw new ServletException(request + " not HttpServletResponse"); } doFilter((HttpServletRequest) request, (HttpServletResponse) response, chain); }
this.doFilter((HttpServletRequest)req, (HttpServletResponse)res, chain);
this.doFilter((HttpServletRequest)req, (HttpServletResponse)res, chain);
/** * {@inheritDoc} * * This implementation tests the request and response to see if they are * instances of {@link HttpServletRequest} and {@link HttpServletResponse} * respectively. If they are then they are passed to * {@link #doFilter(HttpServletRequest, HttpServletResponse, FilterChain)}. * If not, a {@link ServletException} is thrown. * * @throws ServletException If either the request or response are not of the * expected types or any other error occurs */ @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { if (!(request instanceof HttpServletRequest)) { throw new ServletException(request + " not HttpServletRequest"); } if (!(response instanceof HttpServletResponse)) { throw new ServletException(request + " not HttpServletResponse"); } doFilter((HttpServletRequest) request, (HttpServletResponse) response, chain); }
/** * {@inheritDoc} * * This implementation tests the request and response to see if they are * instances of {@link HttpServletRequest} and {@link HttpServletResponse} * respectively. If they are then they are passed to * {@link #doFilter(HttpServletRequest, HttpServletResponse, FilterChain)}. * If not, a {@link ServletException} is thrown. * * @throws ServletException If either the request or response are not of the * expected types or any other error occurs */ @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { if (!(request instanceof HttpServletRequest)) { throw new ServletException(request + " not HttpServletRequest"); } if (!(response instanceof HttpServletResponse)) { throw new ServletException(request + " not HttpServletResponse"); } doFilter((HttpServletRequest) request, (HttpServletResponse) response, chain); }
this.doFilter((HttpServletRequest)req, (HttpServletResponse)res, chain);
this.doFilter((HttpServletRequest)req, (HttpServletResponse)res, chain);
this.doFilter((HttpServletRequest)req, (HttpServletResponse)res, chain);
this.doFilter((HttpServletRequest)req, (HttpServletResponse)res, chain);
this.doFilter((HttpServletRequest)req, (HttpServletResponse)res, chain);
this.doFilter((HttpServletRequest)req, (HttpServletResponse)res, chain);
this.doFilter((HttpServletRequest)req, (HttpServletResponse)res, chain);