Class ExceptionTranslationWebFilter

  • All Implemented Interfaces:
    org.springframework.web.server.WebFilter

    public class ExceptionTranslationWebFilter
    extends java.lang.Object
    implements org.springframework.web.server.WebFilter
    Since:
    5.0
    • Constructor Detail

      • ExceptionTranslationWebFilter

        public ExceptionTranslationWebFilter()
    • Method Detail

      • filter

        public reactor.core.publisher.Mono<java.lang.Void> filter​(org.springframework.web.server.ServerWebExchange exchange,
                                                                  org.springframework.web.server.WebFilterChain chain)
        Specified by:
        filter in interface org.springframework.web.server.WebFilter
      • setAccessDeniedHandler

        public void setAccessDeniedHandler​(ServerAccessDeniedHandler accessDeniedHandler)
        Sets the access denied handler.
        Parameters:
        accessDeniedHandler - the access denied handler to use. Default is HttpStatusAccessDeniedHandler with HttpStatus.FORBIDDEN