public class ViewProtectionUtils extends Object
Constructor and Description |
---|
ViewProtectionUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isViewProtected(FacesContext context,
String viewId) |
static boolean |
matchPattern(String path,
String pattern)
NOTE: Taken from org.apache.catalina.deploy.SecurityConstraint
Does the specified request path match the specified URL pattern?
This method follows the same rules (in the same order) as those used
for mapping requests to servlets.
|
public static boolean matchPattern(String path, String pattern)
path
- Context-relative request path to be checked
(must start with '/')pattern
- URL pattern to be compared againstpublic static boolean isViewProtected(FacesContext context, String viewId)
Copyright © 2020 The Apache Software Foundation. All rights reserved.