T - the type of objects that this RequestCondition can be combined with and compared topublic interface RequestCondition<T>
Request conditions can be combined via combine(Object), matched to
a request via getMatchingCondition(HttpServletRequest), and compared
to each other via compareTo(Object, HttpServletRequest) to determine
which matches a request more closely.
| Modifier and Type | Method and Description |
|---|---|
T |
combine(T other)
Defines the rules for combining this condition (i.e.
|
int |
compareTo(T other,
HttpServletRequest request)
Compares this condition to another condition in the context of
a specific request.
|
T |
getMatchingCondition(HttpServletRequest request)
Checks if this condition matches the given request and returns a
potentially new request condition with content tailored to the
current request.
|
T combine(T other)
RequestMapping conditions.other - the condition to combine with.T getMatchingCondition(HttpServletRequest request)
null if there is no matchint compareTo(T other, HttpServletRequest request)
getMatchingCondition(HttpServletRequest)
to ensure they have content relevant to current request only.