java.lang.Object
jakarta.security.jacc.URLPattern
- All Implemented Interfaces:
Comparable<URLPattern>
- Direct Known Subclasses:
URLPatternSpec
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(URLPattern that) boolean
int
boolean
implies
(URLPattern that) Does this pattern imply (that is, match) the argument pattern? This method follows the same rules (in the same order) as those used for mapping requests to Jakarta Servlets.int
toString()
-
Field Details
-
DEFAULT_PATTERN
-
PT_DEFAULT
public static final int PT_DEFAULT- See Also:
-
PT_EXTENSION
public static final int PT_EXTENSION- See Also:
-
PT_PREFIX
public static final int PT_PREFIX- See Also:
-
PT_EXACT
public static final int PT_EXACT- See Also:
-
patternType
private int patternType -
pattern
-
-
Constructor Details
-
URLPattern
public URLPattern() -
URLPattern
-
-
Method Details
-
patternType
public int patternType() -
compareTo
- Specified by:
compareTo
in interfaceComparable<URLPattern>
-
implies
Does this pattern imply (that is, match) the argument pattern? This method follows the same rules (in the same order) as those used for mapping requests to Jakarta Servlets.Two URL patterns match if they are related 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 argument pattern starts with the substring of this pattern, minus its last 2 characters, and the next character of the argument pattern, if there is one, is "/", or
- this pattern is an extension pattern (that is, it starts with "*.") and the argument pattern ends with this pattern, or
- the reference pattern is the special default pattern, "/", which matches all argument patterns.
- Parameters:
that
- URLPattern to determine if implied by (matched by) this URLPattern to
-
equals
-
toString
-
getPatternDepth
public int getPatternDepth()
-