public class ResourceValidatorImpl extends Object implements ResourceValidator, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_FACELETS_SUFFIX |
protected static String |
FACELETS_SUFFIX_PARAM_NAME |
protected static String[] |
VIEW_MAPPINGS_PARAM_NAMES |
| Constructor and Description |
|---|
ResourceValidatorImpl(ArrayList<Pattern> excludeResourcePatterns,
ArrayList<Pattern> excludeLibraryPatterns) |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected static final String DEFAULT_FACELETS_SUFFIX
protected static final String FACELETS_SUFFIX_PARAM_NAME
protected static final String[] VIEW_MAPPINGS_PARAM_NAMES
public ResourceValidatorImpl(ArrayList<Pattern> excludeResourcePatterns, ArrayList<Pattern> excludeLibraryPatterns)
excludeResourcePatterns - a Serializable ArrayList of excluded resource patterns.excludeLibraryPatterns - a Serializable ArrayList of excluded library patterns.public boolean containsBannedPath(String resourceId)
containsBannedPath in interface ResourceValidatorpublic boolean isBannedSequence(String resourceId)
isBannedSequence in interface ResourceValidatorpublic boolean isFaceletDocument(javax.faces.context.FacesContext facesContext,
String resourceId)
isFaceletDocument in interface ResourceValidatorpublic boolean isSelfReferencing(javax.faces.context.FacesContext facesContext,
String resourceId)
isSelfReferencing in interface ResourceValidatorpublic boolean isValidLibraryName(String libraryName)
isValidLibraryName in interface ResourceValidatorpublic boolean isValidResourceName(String resourceName)
isValidResourceName in interface ResourceValidatorprotected boolean isFaceletsVDL(String viewId)
Copyright © 2016 Liferay, Inc.. All rights reserved.