Class HttpStatusReturningLogoutSuccessHandler

  • All Implemented Interfaces:
    LogoutSuccessHandler

    public class HttpStatusReturningLogoutSuccessHandler
    extends java.lang.Object
    implements LogoutSuccessHandler
    Implementation of the LogoutSuccessHandler. By default returns an HTTP status code of 200. This is useful in REST-type scenarios where a redirect upon a successful logout is not desired.
    Since:
    4.0.2
    • Constructor Detail

      • HttpStatusReturningLogoutSuccessHandler

        public HttpStatusReturningLogoutSuccessHandler​(org.springframework.http.HttpStatus httpStatusToReturn)
        Initialize the HttpStatusLogoutSuccessHandler with a user-defined HttpStatus.
        Parameters:
        httpStatusToReturn - Must not be null.
      • HttpStatusReturningLogoutSuccessHandler

        public HttpStatusReturningLogoutSuccessHandler()
        Initialize the HttpStatusLogoutSuccessHandler with the default HttpStatus.OK.