Class FilterUtil


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getRequestPath​(ServletRequest request)  
      static boolean matchFiltersURL​(FilterMap filterMap, java.lang.String requestPath)
      Tests if the provided, context-relative, request path matches the provided filter mapping.
      • Methods inherited from class java.lang.Object

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

      • matchFiltersURL

        public static boolean matchFiltersURL​(FilterMap filterMap,
                                              java.lang.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 java.lang.String getRequestPath​(ServletRequest request)