Class URLPattern

java.lang.Object
jakarta.security.jacc.URLPattern
All Implemented Interfaces:
Comparable<URLPattern>
Direct Known Subclasses:
URLPatternSpec

class URLPattern extends Object implements Comparable<URLPattern>
  • Field Details

  • Constructor Details

    • URLPattern

      public URLPattern()
    • URLPattern

      public URLPattern(String pattern)
  • Method Details

    • patternType

      public int patternType()
    • compareTo

      public int compareTo(URLPattern that)
      Specified by:
      compareTo in interface Comparable<URLPattern>
    • implies

      public 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.

      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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getPatternDepth

      public int getPatternDepth()