In contrast to PatternsRequestCondition, this condition uses
parsed PathPatterns instead of String pattern matching with
AntPathMatcher.
| 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 | |
| public | PathPatternsRequestCondition(PathPatternParser parser, String... patterns)
Constructor with patterns to use. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public PathPatternsRequestCondition | combine(PathPatternsRequestCondition
the condition to combine with. other)Implements org. Combine the patterns of the current and of the other instances as follows:
|
| public int | compareTo(PathPatternsRequestCondition other, HttpServletRequest request)
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 PathPattern | |
| public PathPatternsRequestCondition | 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 request request)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 | |
| public Set | |
| protected String | getToStringInfix()
Implements abstract org. The notation to use when printing discrete items of content. |
| public boolean | |
| private static SortedSet |
| 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 | |
| PathPatternsRequestCondition | back to summary |
|---|---|
| public PathPatternsRequestCondition() Default constructor resulting in an | |
| PathPatternsRequestCondition | back to summary |
|---|---|
| public PathPatternsRequestCondition(PathPatternParser parser, String... patterns) Constructor with patterns to use. | |
| PathPatternsRequestCondition | back to summary |
|---|---|
| private PathPatternsRequestCondition(SortedSet<PathPattern> patterns) | |
| combine | back to summary |
|---|---|
| public PathPatternsRequestCondition combine(PathPatternsRequestCondition other) Implements org. Combine the patterns of the current and of the other instances as follows:
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(PathPatternsRequestCondition other, HttpServletRequest request) 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. | |
| getFirstPattern | back to summary |
|---|---|
| public PathPattern getFirstPattern() Return the first pattern. | |
| getMatchingCondition | back to summary |
|---|---|
| public PathPatternsRequestCondition getMatchingCondition(HttpServletRequest request) 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 Return the patterns in this condition. If only the first (top) pattern
is needed use | |
| getPatternValues | back to summary |
|---|---|
| public Set Return the | |
| 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. | |
| parse | back to summary |
|---|---|
| private static SortedSet | |