Class AbstractServerWebExchangeMatcherRegistry<T>
- java.lang.Object
-
- org.springframework.security.config.web.server.AbstractServerWebExchangeMatcherRegistry<T>
-
- Direct Known Subclasses:
ServerHttpSecurity.AuthorizeExchangeSpec
public abstract class AbstractServerWebExchangeMatcherRegistry<T> extends java.lang.Object
- Since:
- 5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
anyExchange()
Maps any request.T
matchers(ServerWebExchangeMatcher... matchers)
Associates a list ofServerWebExchangeMatcher
instancesT
pathMatchers(java.lang.String... antPatterns)
Maps aList
ofPathPatternParserServerWebExchangeMatcher
instances that do not care whichHttpMethod
is used.T
pathMatchers(org.springframework.http.HttpMethod method)
Maps aList
ofPathPatternParserServerWebExchangeMatcher
instances.T
pathMatchers(org.springframework.http.HttpMethod method, java.lang.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 Detail
-
anyExchange
public T anyExchange()
Maps any request.- Returns:
- the object that is chained after creating the
ServerWebExchangeMatcher
-
pathMatchers
public T pathMatchers(org.springframework.http.HttpMethod method)
Maps aList
ofPathPatternParserServerWebExchangeMatcher
instances.- Parameters:
method
- theHttpMethod
to use for anyHttpMethod
.- Returns:
- the object that is chained after creating the
ServerWebExchangeMatcher
-
pathMatchers
public T pathMatchers(org.springframework.http.HttpMethod method, java.lang.String... antPatterns)
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
public T pathMatchers(java.lang.String... antPatterns)
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
public T matchers(ServerWebExchangeMatcher... matchers)
Associates a list ofServerWebExchangeMatcher
instances- Parameters:
matchers
- theServerWebExchangeMatcher
instances- Returns:
- the object that is chained after creating the
ServerWebExchangeMatcher
-
registerMatcher
protected abstract T registerMatcher(ServerWebExchangeMatcher matcher)
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
-
-