com.liferay.faces.util.application.internal
Class ResourceValidatorImpl

java.lang.Object
  extended by com.liferay.faces.util.application.internal.ResourceValidatorImpl
All Implemented Interfaces:
ResourceValidator

public class ResourceValidatorImpl
extends Object
implements ResourceValidator

Author:
Neil Griffin

Field Summary
protected static String DEFAULT_FACELETS_SUFFIX
           
protected static String FACELETS_SUFFIX_PARAM_NAME
           
protected static String[] VIEW_MAPPINGS_PARAM_NAMES
           
 
Constructor Summary
ResourceValidatorImpl(List<Pattern> excludeResourcePatterns, List<Pattern> excludeLibraryPatterns)
           
 
Method Summary
 boolean containsBannedPath(String resourceId)
           
 boolean isBannedSequence(String resourceId)
           
 boolean isFaceletDocument(javax.faces.context.FacesContext facesContext, String resourceId)
           
protected  boolean isFaceletsVDL(String viewId)
           
 boolean isSelfReferencing(javax.faces.context.FacesContext facesContext, String resourceId)
           
 boolean isValidLibraryName(String libraryName)
           
 boolean isValidResourceName(String resourceName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FACELETS_SUFFIX

protected static final String DEFAULT_FACELETS_SUFFIX
See Also:
Constant Field Values

FACELETS_SUFFIX_PARAM_NAME

protected static final String FACELETS_SUFFIX_PARAM_NAME
See Also:
Constant Field Values

VIEW_MAPPINGS_PARAM_NAMES

protected static final String[] VIEW_MAPPINGS_PARAM_NAMES
Constructor Detail

ResourceValidatorImpl

public ResourceValidatorImpl(List<Pattern> excludeResourcePatterns,
                             List<Pattern> excludeLibraryPatterns)
Method Detail

containsBannedPath

public boolean containsBannedPath(String resourceId)
Specified by:
containsBannedPath in interface ResourceValidator

isBannedSequence

public boolean isBannedSequence(String resourceId)
Specified by:
isBannedSequence in interface ResourceValidator

isValidLibraryName

public boolean isValidLibraryName(String libraryName)
Specified by:
isValidLibraryName in interface ResourceValidator

isValidResourceName

public boolean isValidResourceName(String resourceName)
Specified by:
isValidResourceName in interface ResourceValidator

isSelfReferencing

public boolean isSelfReferencing(javax.faces.context.FacesContext facesContext,
                                 String resourceId)
Specified by:
isSelfReferencing in interface ResourceValidator

isFaceletsVDL

protected boolean isFaceletsVDL(String viewId)

isFaceletDocument

public boolean isFaceletDocument(javax.faces.context.FacesContext facesContext,
                                 String resourceId)
Specified by:
isFaceletDocument in interface ResourceValidator


Copyright © 2015 Liferay, Inc.. All rights reserved.