org.apache.myfaces.shared.util
Class ViewProtectionUtils

java.lang.Object
  extended by org.apache.myfaces.shared.util.ViewProtectionUtils

public class ViewProtectionUtils
extends Object

Since:
2.2
Author:
Leonardo Uribe

Constructor Summary
ViewProtectionUtils()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewProtectionUtils

public ViewProtectionUtils()
Method Detail

matchPattern

public 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.

Parameters:
path - Context-relative request path to be checked (must start with '/')
pattern - URL pattern to be compared against

isViewProtected

public static boolean isViewProtected(FacesContext context,
                                      String viewId)


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.