Package org.apache.catalina.util
Class FilterUtil
- java.lang.Object
-
- org.apache.catalina.util.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.
-
-
-
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 checkedrequestPath
- Context-relative request path of this request- Returns:
true
if the context-relative request path matches the requirements of the specified filter mapping; otherwise, returnfalse
.
-
getRequestPath
public static java.lang.String getRequestPath(ServletRequest request)
-
-