Class HttpStatusExchangeRejectedHandler

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      reactor.core.publisher.Mono<java.lang.Void> handle​(org.springframework.web.server.ServerWebExchange exchange, ServerExchangeRejectedException serverExchangeRejectedException)
      Handles an request rejected failure.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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 Detail

      • handle

        public reactor.core.publisher.Mono<java.lang.Void> handle​(org.springframework.web.server.ServerWebExchange exchange,
                                                                  ServerExchangeRejectedException serverExchangeRejectedException)
        Description copied from interface: ServerExchangeRejectedHandler
        Handles an request rejected failure.
        Specified by:
        handle in interface ServerExchangeRejectedHandler
        Parameters:
        exchange - the ServerWebExchange that was rejected
        serverExchangeRejectedException - that caused the invocation