Add a getMatchingCondition(String) variant

Extract method on getMatchingCondition(HttpServletRequest) to add a
getMatchingCondition(String) variant in PatternsRequestCondition.

Issue: SPR-11484