@Test void isSupported() { BrowserDetectionFilter browserDetectionFilter = new BrowserDetectionFilter(); assertTrue(browserDetectionFilter.isSupported(IE11_USER_AGENT)); assertTrue(browserDetectionFilter.isSupported(null)); assertTrue(browserDetectionFilter.isSupported("")); assertTrue(browserDetectionFilter.isSupported("bogus")); assertFalse(browserDetectionFilter.isSupported(IE8_USER_AGENT)); assertFalse(browserDetectionFilter.isSupported(IE9_COMPATIBILTY_MODUS_USER_AGENT)); }
protected boolean isSupported(String userAgentHeaderValue) { UserAgent userAgent = UserAgent.parseUserAgentString(userAgentHeaderValue); return !UNSUPPORTED_BROWSERS.contains(userAgent.getBrowser()); }
BrowserDetectionFilter implements Filter { protected boolean isSupported(String userAgentHeaderValue) { UserAgent userAgent = UserAgent.parseUserAgentString(userAgentHeaderValue); return !UNSUPPORTED_BROWSERS.contains(userAgent.getBrowser()); } }
BrowserDetectionFilter implements Filter { protected boolean isSupported(String userAgentHeaderValue) { UserAgent userAgent = UserAgent.parseUserAgentString(userAgentHeaderValue); return !UNSUPPORTED_BROWSERS.contains(userAgent.getBrowser()); }  }
BrowserDetectionFilter implements Filter { protected boolean isSupported(String userAgentHeaderValue) { UserAgent userAgent = UserAgent.parseUserAgentString(userAgentHeaderValue); return !UNSUPPORTED_BROWSERS.contains(userAgent.getBrowser()); }  @Override void doFilter(ServletRequest request, ServletResponse response, FilterChain chain); @Override void destroy(); @Override void init(FilterConfig filterConfig); }
BrowserDetectionFilter implements Filter { protected boolean isSupported(String userAgentHeaderValue) { UserAgent userAgent = UserAgent.parseUserAgentString(userAgentHeaderValue); return !UNSUPPORTED_BROWSERS.contains(userAgent.getBrowser()); }  @Override void doFilter(ServletRequest request, ServletResponse response, FilterChain chain); @Override void destroy(); @Override void init(FilterConfig filterConfig);  }