Class FilterUtil

java.lang.Object
org.apache.catalina.util.FilterUtil

public class FilterUtil extends Object
General purpose utility methods related to filters and filter processing.
  • Method Details

    • matchFiltersURL

      public static boolean matchFiltersURL(FilterMap filterMap, String requestPath)
      Tests if the provided, context-relative, request path matches the provided filter mapping.
      Parameters:
      filterMap - Filter mapping being checked
      requestPath - Context-relative request path of this request
      Returns:
      true if the context-relative request path matches the requirements of the specified filter mapping; otherwise, return false.
    • getRequestPath

      public static String getRequestPath(ServletRequest request)