boolean |
Pattern.isMatching(Pattern otherPattern)
Test if this pattern matches another pattern
This URL pattern matches another pattern if they
are related, by case sensitive comparison, as follows:
- their pattern values are String equivalent, or
- this pattern is the path-prefix pattern "/*", or
- this pattern is a path-prefix pattern (that is, it
starts with "/" and ends with "/*") and the other
pattern starts with the substring of this pattern,
minus its last 2 characters, and the next character
of the other pattern, if there is one, is "/", or
- this pattern is an extension pattern (that is, it
starts with "*.") and the other pattern ends with this
pattern, or this pattern is the special default pattern,
"/", which matches all other patterns. |