Class AbstractRouteMatcher

  • All Implemented Interfaces:
    EventListener, org.springframework.context.ApplicationListener<org.springframework.cloud.gateway.event.RefreshRoutesEvent>, org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher
    Direct Known Subclasses:
    CsrfRouteMatcher, LogoutRouteMatcher, PublicRouteMatcher

    public abstract class AbstractRouteMatcher
    extends Object
    implements org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher, org.springframework.context.ApplicationListener<org.springframework.cloud.gateway.event.RefreshRoutesEvent>
    • Constructor Detail

      • AbstractRouteMatcher

        public AbstractRouteMatcher()
    • 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 interface org.springframework.context.ApplicationListener<org.springframework.cloud.gateway.event.RefreshRoutesEvent>
      • matches

        public reactor.core.publisher.Mono<org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher.MatchResult> matches​(org.springframework.web.server.ServerWebExchange exchange)
        Specified by:
        matches in interface org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher