Package org.apache.catalina.util
Class FilterUtil
- java.lang.Object
-
- org.apache.catalina.util.FilterUtil
-
public class FilterUtil extends java.lang.ObjectGeneral 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.StringgetRequestPath(ServletRequest request)Returns the request path from the dispatcher request path attribute.static booleanmatchFiltersURL(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:
trueif the context-relative request path matches the requirements of the specified filter mapping; otherwise, returnfalse.
-
getRequestPath
public static java.lang.String getRequestPath(ServletRequest request)
Returns the request path from the dispatcher request path attribute.- Parameters:
request- The servlet request- Returns:
- The request path, or
nullif not available
-
-