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 TanyExchange()Maps any request.Tmatchers(ServerWebExchangeMatcher... matchers)Associates a list ofServerWebExchangeMatcherinstancesTpathMatchers(java.lang.String... antPatterns)Maps aListofPathPatternParserServerWebExchangeMatcherinstances that do not care whichHttpMethodis used.TpathMatchers(org.springframework.http.HttpMethod method)Maps aListofPathPatternParserServerWebExchangeMatcherinstances.TpathMatchers(org.springframework.http.HttpMethod method, java.lang.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 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 aListofPathPatternParserServerWebExchangeMatcherinstances.- Parameters:
method- theHttpMethodto 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 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
public T pathMatchers(java.lang.String... antPatterns)
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
public T matchers(ServerWebExchangeMatcher... matchers)
Associates a list ofServerWebExchangeMatcherinstances- Parameters:
matchers- theServerWebExchangeMatcherinstances- 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 theServerWebExchangeMatcherinstances.- Parameters:
matcher- theServerWebExchangeMatcherinstances that were created- Returns:
- the chained Object for the subclass which allows association of something
else to the
ServerWebExchangeMatcher
-
-