T- The type of objects that this RequestCondition can be combined with compared to.
public 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|
Defines the rules for combining this condition (i.e.
Compares this condition to another condition in the context of a specific request.
Checks if this condition matches the given request and returns a potentially new request condition with content tailored to the current request.
other- the condition to combine with.
T getMatchingCondition(HttpServletRequest request)
nullif there is no match.
int compareTo(T other, HttpServletRequest request)
getMatchingCondition(HttpServletRequest)to ensure they have content relevant to current request only.