public abstract class ServerWebExchangeMatchers
extends java.lang.Object
ServerWebExchangeMatcher
Modifier and Type | Method and Description |
---|---|
static ServerWebExchangeMatcher |
anyExchange()
Matches any exchange
|
static ServerWebExchangeMatcher |
matchers(ServerWebExchangeMatcher... matchers)
Creates a matcher that will match on any of the provided matchers
|
static ServerWebExchangeMatcher |
pathMatchers(org.springframework.http.HttpMethod method,
java.lang.String... patterns)
Creates a matcher that matches on the specific method and any of the provided patterns.
|
static ServerWebExchangeMatcher |
pathMatchers(java.lang.String... patterns)
Creates a matcher that matches on any of the provided patterns.
|
public static ServerWebExchangeMatcher pathMatchers(org.springframework.http.HttpMethod method, java.lang.String... patterns)
method
- the method to match on. If null, any method will be matchedpatterns
- the patterns to match onpublic static ServerWebExchangeMatcher pathMatchers(java.lang.String... patterns)
patterns
- the patterns to match onpublic static ServerWebExchangeMatcher matchers(ServerWebExchangeMatcher... matchers)
matchers
- the matchers to match onpublic static ServerWebExchangeMatcher anyExchange()