public class ExceptionTranslationWebFilter
extends java.lang.Object
implements org.springframework.web.server.WebFilter
Constructor and Description |
---|
ExceptionTranslationWebFilter() |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<java.lang.Void> |
filter(org.springframework.web.server.ServerWebExchange exchange,
org.springframework.web.server.WebFilterChain chain) |
void |
setServerAccessDeniedHandler(ServerAccessDeniedHandler serverAccessDeniedHandler)
Sets the access denied handler.
|
void |
setServerAuthenticationEntryPoint(ServerAuthenticationEntryPoint serverAuthenticationEntryPoint)
Sets the authentication entry point used when authentication is required
|
public reactor.core.publisher.Mono<java.lang.Void> filter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain)
filter
in interface org.springframework.web.server.WebFilter
public void setServerAccessDeniedHandler(ServerAccessDeniedHandler serverAccessDeniedHandler)
serverAccessDeniedHandler
- the access denied handler to use. Default is
HttpStatusAccessDeniedHandler with HttpStatus.FORBIDDENpublic void setServerAuthenticationEntryPoint(ServerAuthenticationEntryPoint serverAuthenticationEntryPoint)
serverAuthenticationEntryPoint
- the authentication entry point to use. Default is
HttpBasicServerAuthenticationEntryPoint