public class HttpSecurity.AuthorizeExchangeBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
HttpSecurity.AuthorizeExchangeBuilder.Access |
Constructor and Description |
---|
AuthorizeExchangeBuilder() |
Modifier and Type | Method and Description |
---|---|
HttpSecurity |
and() |
HttpSecurity.AuthorizeExchangeBuilder.Access |
anyExchange()
Maps any request.
|
protected org.springframework.web.server.WebFilter |
build() |
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 HttpSecurity.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 HttpSecurity and()
public HttpSecurity.AuthorizeExchangeBuilder.Access anyExchange()
ServerWebExchangeMatcher
protected HttpSecurity.AuthorizeExchangeBuilder.Access registerMatcher(ServerWebExchangeMatcher matcher)
ServerWebExchangeMatcher
instances.matcher
- the ServerWebExchangeMatcher
instances that were createdServerWebExchangeMatcher
protected org.springframework.web.server.WebFilter build()
public T pathMatchers(org.springframework.http.HttpMethod method)
List
of
PathPatternParserServerWebExchangeMatcher
instances.method
- the HttpMethod
to use for any
HttpMethod
.ServerWebExchangeMatcher
public 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
fromServerWebExchangeMatcher
public 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
fromServerWebExchangeMatcher
public T matchers(ServerWebExchangeMatcher... matchers)
ServerWebExchangeMatcher
instancesmatchers
- the ServerWebExchangeMatcher
instancesServerWebExchangeMatcher