| Modifier and Type | Field and Description |
|---|---|
| private static final Set | |
| private static final SortedSet | |
| private final SortedSet | |
| private static final SortedSet |
| Access | Constructor and Description |
|---|---|
| public | PatternsRequestCondition(PathPattern...
0 or more URL patterns; if 0 the condition will match to every request. patterns)Creates a new instance with the given URL patterns. |
| public | PatternsRequestCondition(List<PathPattern> patterns)
Creates a new instance with the given URL patterns. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public PatternsRequestCondition | combine(PatternsRequestCondition
the condition to combine with. other)Implements org. Combine the patterns of the current and of the other instances as follows:
|
| public int | compareTo(PatternsRequestCondition other, ServerWebExchange exchange)
Implements org. Compare the two conditions based on the URL patterns they contain. |
| protected Collection | getContent()
Implements abstract org. Return the discrete items a request condition is composed of. |
| public Set | |
| public PatternsRequestCondition | Returns: the same instance if the condition contains no patterns; or a new condition with sorted matching patterns; ornull if no patterns match.the current exchange exchange)Implements org. Checks if any of the patterns match the given request and returns an instance that is guaranteed to contain matching patterns, sorted. |
| private SortedSet | |
| public Set | |
| protected String | getToStringInfix()
Implements abstract org. The notation to use when printing discrete items of content. |
| public boolean |
| EMPTY_PATH | back to summary |
|---|---|
| private static final Set<String> EMPTY_PATH | |
| EMPTY_PATH_PATTERN | back to summary |
|---|---|
| private static final SortedSet<PathPattern> EMPTY_PATH_PATTERN | |
| patterns | back to summary |
|---|---|
| private final SortedSet<PathPattern> patterns | |
| ROOT_PATH_PATTERNS | back to summary |
|---|---|
| private static final SortedSet<PathPattern> ROOT_PATH_PATTERNS | |
| PatternsRequestCondition | back to summary |
|---|---|
| public PatternsRequestCondition(PathPattern... patterns) Creates a new instance with the given URL patterns.
| |
| PatternsRequestCondition | back to summary |
|---|---|
| public PatternsRequestCondition(List<PathPattern> patterns) Creates a new instance with the given URL patterns. | |
| PatternsRequestCondition | back to summary |
|---|---|
| private PatternsRequestCondition(SortedSet<PathPattern> patterns) | |
| combine | back to summary |
|---|---|
| public PatternsRequestCondition combine(PatternsRequestCondition other) Implements org. Combine the patterns of the current and of the other instances as follows:
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(PatternsRequestCondition other, ServerWebExchange exchange) Implements org. Compare the two conditions based on the URL patterns they contain. Patterns are compared one at a time, from top to bottom. If all compared patterns match equally, but one instance has more patterns, it is considered a closer match. It is assumed that both instances have been obtained via
| |
| getContent | back to summary |
|---|---|
| protected Collection Implements abstract org. Doc from org. Return the discrete items a request condition is composed of. For example URL patterns, HTTP request methods, param expressions, etc.
| |
| getDirectPaths | back to summary |
|---|---|
| public Set Return the mapping paths that are not patterns.
| |
| getMatchingCondition | back to summary |
|---|---|
| public PatternsRequestCondition getMatchingCondition(ServerWebExchange exchange) Implements org. Checks if any of the patterns match the given request and returns an instance that is guaranteed to contain matching patterns, sorted.
| |
| getMatchingPatterns | back to summary |
|---|---|
private SortedSet
| |
| getPatterns | back to summary |
|---|---|
| public Set | |
| getToStringInfix | back to summary |
|---|---|
| protected String getToStringInfix() Implements abstract org. Doc from org. The notation to use when printing discrete items of content. For example
| |
| isEmptyPathMapping | back to summary |
|---|---|
| public boolean isEmptyPathMapping() Whether the condition is the "" (empty path) mapping.
| |