Class HttpStatusExchangeRejectedHandler

java.lang.Object
org.springframework.security.web.server.firewall.HttpStatusExchangeRejectedHandler
All Implemented Interfaces:
ServerExchangeRejectedHandler

public class HttpStatusExchangeRejectedHandler extends Object implements ServerExchangeRejectedHandler
A simple implementation of ServerExchangeRejectedHandler that sends an error with configurable status code.
Since:
6.4
  • Constructor Details

    • HttpStatusExchangeRejectedHandler

      public HttpStatusExchangeRejectedHandler()
      Constructs an instance which uses 400 as response code.
    • HttpStatusExchangeRejectedHandler

      public HttpStatusExchangeRejectedHandler(org.springframework.http.HttpStatus status)
      Constructs an instance which uses a configurable http code as response.
      Parameters:
      status - http status code to use
  • Method Details