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 ofServerWebExchangeMatcher
instancespathMatchers
(String... antPatterns) Maps aList
ofPathPatternParserServerWebExchangeMatcher
instances that do not care whichHttpMethod
is used.pathMatchers
(org.springframework.http.HttpMethod method) Maps aList
ofPathPatternParserServerWebExchangeMatcher
instances.pathMatchers
(org.springframework.http.HttpMethod method, String... antPatterns) Maps aList
ofPathPatternParserServerWebExchangeMatcher
instances.protected abstract T
registerMatcher
(ServerWebExchangeMatcher matcher) Subclasses should implement this method for returning the object that is chained to the creation of theServerWebExchangeMatcher
instances.
-
Method Details
-
anyExchange
Maps any request.- Returns:
- the object that is chained after creating the
ServerWebExchangeMatcher
-
pathMatchers
Maps aList
ofPathPatternParserServerWebExchangeMatcher
instances.- Parameters:
method
- theHttpMethod
to use for anyHttpMethod
.- Returns:
- the object that is chained after creating the
ServerWebExchangeMatcher
-
pathMatchers
Maps aList
ofPathPatternParserServerWebExchangeMatcher
instances.- Parameters:
method
- theHttpMethod
to use ornull
for anyHttpMethod
.antPatterns
- the ant patterns to create. Ifnull
or empty, then matches on nothing.PathPatternParserServerWebExchangeMatcher
from- Returns:
- the object that is chained after creating the
ServerWebExchangeMatcher
-
pathMatchers
Maps aList
ofPathPatternParserServerWebExchangeMatcher
instances that do not care whichHttpMethod
is used.- Parameters:
antPatterns
- the ant patterns to createPathPatternParserServerWebExchangeMatcher
from- Returns:
- the object that is chained after creating the
ServerWebExchangeMatcher
-
matchers
Associates a list ofServerWebExchangeMatcher
instances- Parameters:
matchers
- theServerWebExchangeMatcher
instances- 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 theServerWebExchangeMatcher
instances.- Parameters:
matcher
- theServerWebExchangeMatcher
instances that were created- Returns:
- the chained Object for the subclass which allows association of something
else to the
ServerWebExchangeMatcher
-