Class AbstractServerWebExchangeMatcherRegistry<T>
java.lang.Object
org.springframework.security.config.web.server.AbstractServerWebExchangeMatcherRegistry<T>
- Direct Known Subclasses:
ServerHttpSecurity.AuthorizeExchangeSpec
- Since:
- 5.0
-
Method Summary
Modifier and TypeMethodDescriptionMaps any request.matchers(ServerWebExchangeMatcher... matchers) Associates a list ofServerWebExchangeMatcherinstancespathMatchers(String... antPatterns) Maps aListofPathPatternParserServerWebExchangeMatcherinstances that do not care whichHttpMethodis used.pathMatchers(org.springframework.http.HttpMethod method) Maps aListofPathPatternParserServerWebExchangeMatcherinstances.pathMatchers(org.springframework.http.HttpMethod method, String... antPatterns) Maps aListofPathPatternParserServerWebExchangeMatcherinstances.protected abstract TregisterMatcher(ServerWebExchangeMatcher matcher) Subclasses should implement this method for returning the object that is chained to the creation of theServerWebExchangeMatcherinstances.
-
Method Details
-
anyExchange
Maps any request.- Returns:
- the object that is chained after creating the
ServerWebExchangeMatcher
-
pathMatchers
Maps aListofPathPatternParserServerWebExchangeMatcherinstances.- Parameters:
method- theHttpMethodto use for anyHttpMethod.- Returns:
- the object that is chained after creating the
ServerWebExchangeMatcher
-
pathMatchers
Maps aListofPathPatternParserServerWebExchangeMatcherinstances.- Parameters:
method- theHttpMethodto use ornullfor anyHttpMethod.antPatterns- the ant patterns to create. Ifnullor empty, then matches on nothing.PathPatternParserServerWebExchangeMatcherfrom- Returns:
- the object that is chained after creating the
ServerWebExchangeMatcher
-
pathMatchers
Maps aListofPathPatternParserServerWebExchangeMatcherinstances that do not care whichHttpMethodis used.- Parameters:
antPatterns- the ant patterns to createPathPatternParserServerWebExchangeMatcherfrom- Returns:
- the object that is chained after creating the
ServerWebExchangeMatcher
-
matchers
Associates a list ofServerWebExchangeMatcherinstances- Parameters:
matchers- theServerWebExchangeMatcherinstances- Returns:
- the object that is chained after creating the
ServerWebExchangeMatcher
-
registerMatcher
Subclasses should implement this method for returning the object that is chained to the creation of theServerWebExchangeMatcherinstances.- Parameters:
matcher- theServerWebExchangeMatcherinstances that were created- Returns:
- the chained Object for the subclass which allows association of something
else to the
ServerWebExchangeMatcher
-