| Package | Description |
|---|---|
| org.springframework.web.servlet.mvc.condition |
Common MVC logic for matching incoming requests based on conditions.
|
| org.springframework.web.servlet.mvc.method |
Servlet-based infrastructure for handler method processing,
building on the
org.springframework.web.method package. |
| Modifier and Type | Method and Description |
|---|---|
PatternsRequestCondition |
PatternsRequestCondition.combine(PatternsRequestCondition other)
Returns a new instance with URL patterns from the current instance ("this") and
the "other" instance as follows:
If there are patterns in both instances, combine the patterns in "this" with
the patterns in "other" using
PathMatcher.combine(String, String). |
PatternsRequestCondition |
PatternsRequestCondition.getMatchingCondition(HttpServletRequest request)
Checks if any of the patterns match the given request and returns an instance
that is guaranteed to contain matching patterns, sorted via
PathMatcher.getPatternComparator(String). |
| Modifier and Type | Method and Description |
|---|---|
PatternsRequestCondition |
PatternsRequestCondition.combine(PatternsRequestCondition other)
Returns a new instance with URL patterns from the current instance ("this") and
the "other" instance as follows:
If there are patterns in both instances, combine the patterns in "this" with
the patterns in "other" using
PathMatcher.combine(String, String). |
int |
PatternsRequestCondition.compareTo(PatternsRequestCondition other,
HttpServletRequest request)
Compare the two conditions based on the URL patterns they contain.
|
| Modifier and Type | Method and Description |
|---|---|
PatternsRequestCondition |
RequestMappingInfo.getPatternsCondition()
Return the patterns condition when String pattern matching via
PathMatcher is in use. |
| Constructor and Description |
|---|
RequestMappingInfo(PatternsRequestCondition patterns,
RequestMethodsRequestCondition methods,
ParamsRequestCondition params,
HeadersRequestCondition headers,
ConsumesRequestCondition consumes,
ProducesRequestCondition produces,
RequestCondition<?> custom)
Deprecated.
as of 5.3 in favor using
RequestMappingInfo.Builder via
RequestMappingInfo.paths(String...). |
RequestMappingInfo(String name,
PatternsRequestCondition patterns,
RequestMethodsRequestCondition methods,
ParamsRequestCondition params,
HeadersRequestCondition headers,
ConsumesRequestCondition consumes,
ProducesRequestCondition produces,
RequestCondition<?> custom)
Deprecated.
as of 5.3 in favor using
RequestMappingInfo.Builder via
RequestMappingInfo.paths(String...). |