SAMLLogoutFilter extends LogoutFilter { @Override protected boolean requiresLogout(HttpServletRequest request, HttpServletResponse response) { return SAMLUtil.processFilter(getFilterProcessesUrl(), request); } SAMLLogoutFilter(String successUrl, LogoutHandler[] localHandler, LogoutHandler[] globalHandlers);  SAMLLogoutFilter(LogoutSuccessHandler logoutSuccessHandler, LogoutHandler[] localHandler, LogoutHandler[] globalHandlers); @Override void doFilter(ServletRequest request, ServletResponse response, FilterChain chain); void processLogout(HttpServletRequest request, HttpServletResponse response, FilterChain chain); @Autowired void setSamlLogger(SAMLLogger samlLogger); @Autowired void setProfile(SingleLogoutProfile profile); @Autowired void setContextProvider(SAMLContextProvider contextProvider); @Override void afterPropertiesSet(); @Override void setFilterProcessesUrl(String filterProcessesUrl); String getFilterProcessesUrl(); static final String FILTER_URL; }
@Test public void requiresLogout() { assertEquals(false, filter.requiresLogout(request, response)); request.setRequestURI("/logout"); assertEquals(false, filter.requiresLogout(request, response)); }