Example usage for org.springframework.security.web.authentication.logout CompositeLogoutHandler CompositeLogoutHandler

List of usage examples for org.springframework.security.web.authentication.logout CompositeLogoutHandler CompositeLogoutHandler

Introduction

In this page you can find the example usage for org.springframework.security.web.authentication.logout CompositeLogoutHandler CompositeLogoutHandler.

Prototype

public CompositeLogoutHandler(List<LogoutHandler> logoutHandlers) 

Source Link

Usage

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);
}