Class ServerWebExchangeMatchers
- java.lang.Object
-
- org.springframework.security.web.server.util.matcher.ServerWebExchangeMatchers
-
public abstract class ServerWebExchangeMatchers extends java.lang.ObjectProvides factory methods for creating commonServerWebExchangeMatcher- Since:
- 5.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServerWebExchangeMatcheranyExchange()Matches any exchangestatic ServerWebExchangeMatchermatchers(ServerWebExchangeMatcher... matchers)Creates a matcher that will match on any of the provided matchersstatic ServerWebExchangeMatcherpathMatchers(java.lang.String... patterns)Creates a matcher that matches on any of the provided patterns.static ServerWebExchangeMatcherpathMatchers(org.springframework.http.HttpMethod method, java.lang.String... patterns)Creates a matcher that matches on the specific method and any of the provided patterns.static ServerWebExchangeMatcherpathMatchers(org.springframework.http.HttpMethod method, org.springframework.web.util.pattern.PathPattern... pathPatterns)Creates a matcher that matches on the specific method and any of the providedPathPatterns.static ServerWebExchangeMatcherpathMatchers(org.springframework.web.util.pattern.PathPattern... pathPatterns)Creates a matcher that matches on any of the providedPathPatterns.
-
-
-
Method Detail
-
pathMatchers
public static ServerWebExchangeMatcher pathMatchers(org.springframework.http.HttpMethod method, java.lang.String... patterns)
Creates a matcher that matches on the specific method and any of the provided patterns.- Parameters:
method- the method to match on. If null, any method will be matchedpatterns- the patterns to match on- Returns:
- the matcher to use
-
pathMatchers
public static ServerWebExchangeMatcher pathMatchers(java.lang.String... patterns)
Creates a matcher that matches on any of the provided patterns.- Parameters:
patterns- the patterns to match on- Returns:
- the matcher to use
-
pathMatchers
public static ServerWebExchangeMatcher pathMatchers(org.springframework.web.util.pattern.PathPattern... pathPatterns)
Creates a matcher that matches on any of the providedPathPatterns.- Parameters:
pathPatterns- thePathPatterns to match on- Returns:
- the matcher to use
-
pathMatchers
public static ServerWebExchangeMatcher pathMatchers(org.springframework.http.HttpMethod method, org.springframework.web.util.pattern.PathPattern... pathPatterns)
Creates a matcher that matches on the specific method and any of the providedPathPatterns.- Parameters:
method- the method to match on. If null, any method will be matched.pathPatterns- thePathPatterns to match on- Returns:
- the matcher to use
-
matchers
public static ServerWebExchangeMatcher matchers(ServerWebExchangeMatcher... matchers)
Creates a matcher that will match on any of the provided matchers- Parameters:
matchers- the matchers to match on- Returns:
- the matcher to use
-
anyExchange
public static ServerWebExchangeMatcher anyExchange()
Matches any exchange- Returns:
- the matcher to use
-
-