public class ServerHttpSecurity.AuthorizeExchangeBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
ServerHttpSecurity.AuthorizeExchangeBuilder.Access |
Constructor and Description |
---|
AuthorizeExchangeBuilder() |
Modifier and Type | Method and Description |
---|---|
ServerHttpSecurity |
and() |
ServerHttpSecurity.AuthorizeExchangeBuilder.Access |
anyExchange()
Maps any request.
|
protected void |
configure(ServerHttpSecurity http) |
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 ServerHttpSecurity.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 ServerHttpSecurity and()
public ServerHttpSecurity.AuthorizeExchangeBuilder.Access anyExchange()
ServerWebExchangeMatcher
protected ServerHttpSecurity.AuthorizeExchangeBuilder.Access registerMatcher(ServerWebExchangeMatcher matcher)
ServerWebExchangeMatcher
instances.matcher
- the ServerWebExchangeMatcher
instances that were createdServerWebExchangeMatcher
protected void configure(ServerHttpSecurity http)
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