public class AuthorizeExchangeBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
AuthorizeExchangeBuilder.Access |
Constructor and Description |
---|
AuthorizeExchangeBuilder() |
Modifier and Type | Method and Description |
---|---|
T |
antMatchers(HttpMethod method)
Maps a
List of
PathMatcherServerWebExchangeMatcher
instances. |
T |
antMatchers(HttpMethod method,
java.lang.String... antPatterns)
Maps a
List of
PathMatcherServerWebExchangeMatcher
instances. |
T |
antMatchers(java.lang.String... antPatterns)
Maps a
List of
PathMatcherServerWebExchangeMatcher
instances that do not care which HttpMethod is used. |
AuthorizeExchangeBuilder.Access |
anyExchange()
Maps any request.
|
WebFilter |
build() |
T |
matchers(ServerWebExchangeMatcher... matchers)
Associates a list of
ServerWebExchangeMatcher instances |
protected AuthorizeExchangeBuilder.Access |
registerMatcher(ServerWebExchangeMatcher matcher)
Subclasses should implement this method for returning the object that is chained to
the creation of the
ServerWebExchangeMatcher instances. |
public AuthorizeExchangeBuilder.Access anyExchange()
ServerWebExchangeMatcher
protected AuthorizeExchangeBuilder.Access registerMatcher(ServerWebExchangeMatcher matcher)
ServerWebExchangeMatcher
instances.matcher
- the ServerWebExchangeMatcher
instances that were createdServerWebExchangeMatcher
public WebFilter build()
public T antMatchers(HttpMethod method)
List
of
PathMatcherServerWebExchangeMatcher
instances.method
- the HttpMethod
to use for any
HttpMethod
.ServerWebExchangeMatcher
public T antMatchers(HttpMethod method, java.lang.String... antPatterns)
List
of
PathMatcherServerWebExchangeMatcher
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.
PathMatcherServerWebExchangeMatcher
fromServerWebExchangeMatcher
public T antMatchers(java.lang.String... antPatterns)
List
of
PathMatcherServerWebExchangeMatcher
instances that do not care which HttpMethod
is used.antPatterns
- the ant patterns to create
PathMatcherServerWebExchangeMatcher
fromServerWebExchangeMatcher
public T matchers(ServerWebExchangeMatcher... matchers)
ServerWebExchangeMatcher
instancesmatchers
- the ServerWebExchangeMatcher
instancesServerWebExchangeMatcher