Class ServerWebExchangeContextFilter

    • Method Detail

      • filter

        public reactor.core.publisher.Mono<Voidfilter​(ServerWebExchange exchange,
                                                        WebFilterChain chain)
        Description copied from interface: WebFilter
        Process the Web request and (optionally) delegate to the next WebFilter through the given WebFilterChain.
        Specified by:
        filter in interface WebFilter
        Parameters:
        exchange - the current server exchange
        chain - provides a way to delegate to the next filter
        Returns:
        Mono<Void> to indicate when request processing is complete
      • get

        public static Optional<ServerWebExchangeget​(reactor.util.context.Context context)
        Access the ServerWebExchange from the Reactor Context, if available, which is if ServerWebExchangeContextFilter is configured for use and the give context was obtained from a request processing chain.
        Parameters:
        context - the context in which to access the exchange
        Returns:
        the exchange