Class ServletFilter.UrlPattern

  • Enclosing class:
    ServletFilter

    public static final class ServletFilter.UrlPattern
    extends java.lang.Object
    • Method Detail

      • matches

        public boolean matches​(java.lang.String path)
      • getInclusions

        public java.util.Collection<java.lang.String> getInclusions()
        Since:
        6.0
      • getExclusions

        public java.util.Collection<java.lang.String> getExclusions()
        Since:
        6.0
      • getUrl

        @Deprecated
        public java.lang.String getUrl()
        Deprecated.
        replaced in version 6.0 by getInclusions() and getExclusions()
        Throws:
        java.lang.IllegalStateException - if at least one exclusion or more than one inclusions are defined
      • label

        public java.lang.String label()
      • create

        public static ServletFilter.UrlPattern create​(java.lang.String inclusionPattern)
        Defines only a single inclusion pattern. This is a shortcut for builder().includes(inclusionPattern).build().