Class PathPatternUtil


  • public class PathPatternUtil
    extends java.lang.Object
    Utility class for HTTP path patterns.
    Since:
    1.1
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static PathPattern build​(java.lang.String pathPattern)
      Build a new PathPattern from HTTP path pattern.
      static PathPattern build​(java.lang.String pathPattern, boolean threadLocalMatcher)
      Build a new PathPattern from HTTP path pattern.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • build

        public static final PathPattern build​(java.lang.String pathPattern,
                                              boolean threadLocalMatcher)
                                       throws java.lang.IllegalArgumentException
        Build a new PathPattern from HTTP path pattern.
        Parameters:
        pathPattern - the pattern of HTTP path
        threadLocalMatcher - if matchers will be cached in a ThreadLocal variable
        Returns:
        a PathPattern
        Throws:
        java.lang.IllegalArgumentException - if the path variable is illegal
      • build

        public static final PathPattern build​(java.lang.String pathPattern)
                                       throws java.lang.IllegalArgumentException
        Build a new PathPattern from HTTP path pattern.
        Parameters:
        pathPattern - the pattern of HTTP path
        Returns:
        a PathPattern
        Throws:
        java.lang.IllegalArgumentException - if the path variable is illegal