List of usage examples for org.springframework.security.web.authentication.logout CompositeLogoutHandler CompositeLogoutHandler
public CompositeLogoutHandler(List<LogoutHandler> logoutHandlers)
From source file:org.springframework.security.web.servletapi.HttpServlet3RequestFactory.java
/** * <p>/* w w w. ja va2 s .c o m*/ * Sets the {@link LogoutHandler}s used when integrating with * {@link HttpServletRequest} with Servlet 3 APIs. Specifically it will be used when * {@link HttpServletRequest#logout()} is invoked in order to log the user out. So * long as the {@link LogoutHandler}s do not commit the {@link HttpServletResponse} * (expected), then the user is in charge of handling the response. * </p> * <p> * If the value is null (default), the default container behavior will be retained * when invoking {@link HttpServletRequest#logout()}. * </p> * * @param logoutHandlers the {@link List<LogoutHandler>}s when invoking * {@link HttpServletRequest#logout()}. */ public void setLogoutHandlers(List<LogoutHandler> logoutHandlers) { this.logoutHandler = CollectionUtils.isEmpty(logoutHandlers) ? null : new CompositeLogoutHandler(logoutHandlers); }