public abstract class AbstractServerWebExchangeMatcherRegistry<T>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
T |
anyExchange()
Maps any request.
|
T |
matchers(ServerWebExchangeMatcher... matchers)
Associates a list of
ServerWebExchangeMatcher instances |
T |
pathMatchers(org.springframework.http.HttpMethod method)
Maps a
List of PathPatternParserServerWebExchangeMatcher instances. |
T |
pathMatchers(org.springframework.http.HttpMethod method,
java.lang.String... antPatterns)
Maps a
List of PathPatternParserServerWebExchangeMatcher instances. |
T |
pathMatchers(java.lang.String... antPatterns)
Maps a
List of PathPatternParserServerWebExchangeMatcher instances
that do not care which HttpMethod is used. |
protected abstract T |
registerMatcher(ServerWebExchangeMatcher matcher)
Subclasses should implement this method for returning the object that is chained to
the creation of the
ServerWebExchangeMatcher instances. |
public T anyExchange()
ServerWebExchangeMatcherpublic T pathMatchers(org.springframework.http.HttpMethod method)
List of PathPatternParserServerWebExchangeMatcher instances.method - the HttpMethod to use for any HttpMethod.ServerWebExchangeMatcherpublic T pathMatchers(org.springframework.http.HttpMethod method, java.lang.String... antPatterns)
List of PathPatternParserServerWebExchangeMatcher instances.method - the HttpMethod to use or null for any
HttpMethod.antPatterns - the ant patterns to create. If null or empty, then
matches on nothing. PathPatternParserServerWebExchangeMatcher fromServerWebExchangeMatcherpublic T pathMatchers(java.lang.String... antPatterns)
List of PathPatternParserServerWebExchangeMatcher instances
that do not care which HttpMethod is used.antPatterns - the ant patterns to create
PathPatternParserServerWebExchangeMatcher fromServerWebExchangeMatcherpublic T matchers(ServerWebExchangeMatcher... matchers)
ServerWebExchangeMatcher instancesmatchers - the ServerWebExchangeMatcher instancesServerWebExchangeMatcherprotected abstract T registerMatcher(ServerWebExchangeMatcher matcher)
ServerWebExchangeMatcher instances.matcher - the ServerWebExchangeMatcher instances that were createdServerWebExchangeMatcher