Package org.apache.syncope.sra.security
Class AbstractRouteMatcher
- java.lang.Object
-
- org.apache.syncope.sra.security.AbstractRouteMatcher
-
- All Implemented Interfaces:
EventListener
,ApplicationListener<org.springframework.cloud.gateway.event.RefreshRoutesEvent>
,ServerWebExchangeMatcher
- Direct Known Subclasses:
CsrfRouteMatcher
,LogoutRouteMatcher
,PublicRouteMatcher
public abstract class AbstractRouteMatcher extends Object implements ServerWebExchangeMatcher, ApplicationListener<org.springframework.cloud.gateway.event.RefreshRoutesEvent>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher
ServerWebExchangeMatcher.MatchResult
-
-
Field Summary
Fields Modifier and Type Field Description protected static Map<String,Map<String,Boolean>>
CACHE
protected RouteProvider
routeProvider
-
Constructor Summary
Constructors Constructor Description AbstractRouteMatcher()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract String
getCacheName()
reactor.core.publisher.Mono<ServerWebExchangeMatcher.MatchResult>
matches(ServerWebExchange exchange)
void
onApplicationEvent(org.springframework.cloud.gateway.event.RefreshRoutesEvent event)
protected abstract boolean
routeBehavior(org.springframework.cloud.gateway.route.Route route)
-
-
-
Field Detail
-
routeProvider
@Autowired protected RouteProvider routeProvider
-
-
Method Detail
-
getCacheName
protected abstract String getCacheName()
-
routeBehavior
protected abstract boolean routeBehavior(org.springframework.cloud.gateway.route.Route route)
-
onApplicationEvent
public void onApplicationEvent(org.springframework.cloud.gateway.event.RefreshRoutesEvent event)
- Specified by:
onApplicationEvent
in interfaceApplicationListener<org.springframework.cloud.gateway.event.RefreshRoutesEvent>
-
matches
public reactor.core.publisher.Mono<ServerWebExchangeMatcher.MatchResult> matches(ServerWebExchange exchange)
- Specified by:
matches
in interfaceServerWebExchangeMatcher
-
-