@Test public void shouldDelegateToNextInFilterChainForNonHttpRequests() throws Exception { ServletRequest servletRequest = mock(ServletRequest.class); ServletResponse servletResponse = mock(ServletResponse.class); unit.doFilter(servletRequest, servletResponse, filterChain); verify(filterChain).doFilter(servletRequest, servletResponse); }
@Override public final void doFilter(final ServletRequest servletRequest, final ServletResponse servletResponse, final FilterChain filterChain) throws IOException, ServletException { if (servletRequest instanceof HttpServletRequest && servletResponse instanceof HttpServletResponse) { doFilterHttp((HttpServletRequest) servletRequest, (HttpServletResponse) servletResponse, filterChain); } else { filterChain.doFilter(servletRequest, servletResponse); } }
TraceeFilter implements Filter { @Override public final void doFilter(final ServletRequest servletRequest, final ServletResponse servletResponse, final FilterChain filterChain) throws IOException, ServletException { if (servletRequest instanceof HttpServletRequest && servletResponse instanceof HttpServletResponse) { doFilterHttp((HttpServletRequest) servletRequest, (HttpServletResponse) servletResponse, filterChain); } else { filterChain.doFilter(servletRequest, servletResponse); } } }
TraceeFilter implements Filter { @Override public final void doFilter(final ServletRequest servletRequest, final ServletResponse servletResponse, final FilterChain filterChain) throws IOException, ServletException { if (servletRequest instanceof HttpServletRequest && servletResponse instanceof HttpServletResponse) { doFilterHttp((HttpServletRequest) servletRequest, (HttpServletResponse) servletResponse, filterChain); } else { filterChain.doFilter(servletRequest, servletResponse); } } TraceeFilter();   TraceeFilter(TraceeBackend backend, HttpHeaderTransport transportSerialization); }
TraceeFilter implements Filter { @Override public final void doFilter(final ServletRequest servletRequest, final ServletResponse servletResponse, final FilterChain filterChain) throws IOException, ServletException { if (servletRequest instanceof HttpServletRequest && servletResponse instanceof HttpServletResponse) { doFilterHttp((HttpServletRequest) servletRequest, (HttpServletResponse) servletResponse, filterChain); } else { filterChain.doFilter(servletRequest, servletResponse); } } TraceeFilter();   TraceeFilter(TraceeBackend backend, HttpHeaderTransport transportSerialization); @Override final void doFilter(final ServletRequest servletRequest, final ServletResponse servletResponse, final FilterChain filterChain); @Override final void init(final FilterConfig filterConfig); @Override final void destroy(); }
TraceeFilter implements Filter { @Override public final void doFilter(final ServletRequest servletRequest, final ServletResponse servletResponse, final FilterChain filterChain) throws IOException, ServletException { if (servletRequest instanceof HttpServletRequest && servletResponse instanceof HttpServletResponse) { doFilterHttp((HttpServletRequest) servletRequest, (HttpServletResponse) servletResponse, filterChain); } else { filterChain.doFilter(servletRequest, servletResponse); } } TraceeFilter();   TraceeFilter(TraceeBackend backend, HttpHeaderTransport transportSerialization); @Override final void doFilter(final ServletRequest servletRequest, final ServletResponse servletResponse, final FilterChain filterChain); @Override final void init(final FilterConfig filterConfig); @Override final void destroy(); static final String PROFILE_INIT_PARAM; }