public abstract class ResourceHandler extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JSF_SCRIPT_LIBRARY_NAME |
static String |
JSF_SCRIPT_RESOURCE_NAME |
static String |
LOCALE_PREFIX |
static String |
RESOURCE_CONTRACT_XML |
static String |
RESOURCE_EXCLUDES_DEFAULT_VALUE |
static String |
RESOURCE_EXCLUDES_PARAM_NAME
Space separated file extensions that will not be served by the default ResourceHandler implementation.
|
static String |
RESOURCE_IDENTIFIER |
static String |
WEBAPP_CONTRACTS_DIRECTORY_PARAM_NAME |
static String |
WEBAPP_RESOURCES_DIRECTORY_PARAM_NAME |
Constructor and Description |
---|
ResourceHandler() |
public static final String LOCALE_PREFIX
public static final String RESOURCE_EXCLUDES_DEFAULT_VALUE
@JSFWebConfigParam(defaultValue=".class .jsp .jspx .properties .xhtml .groovy", since="2.0", group="resources") public static final String RESOURCE_EXCLUDES_PARAM_NAME
public static final String RESOURCE_IDENTIFIER
public static final String RESOURCE_CONTRACT_XML
public static final String WEBAPP_CONTRACTS_DIRECTORY_PARAM_NAME
public static final String WEBAPP_RESOURCES_DIRECTORY_PARAM_NAME
public static final String JSF_SCRIPT_RESOURCE_NAME
public static final String JSF_SCRIPT_LIBRARY_NAME
public abstract Resource createResource(String resourceName, String libraryName, String contentType)
public abstract String getRendererTypeForResourceName(String resourceName)
public abstract void handleResourceRequest(FacesContext context) throws IOException
IOException
public abstract boolean isResourceRequest(FacesContext context)
public abstract boolean libraryExists(String libraryName)
public Resource createResourceFromId(String resourceId)
resourceId
- public ViewResource createViewResource(FacesContext context, String resourceName)
context
- resourceName
- public boolean isResourceURL(String url)
public Stream<String> getViewResources(FacesContext facesContext, String path, ResourceVisitOption... options)
facesContext
- path
- options
- public Stream<String> getViewResources(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options)
facesContext
- path
- maxDepth
- options
- public boolean isResourceRendered(FacesContext facesContext, String resourceName, String libraryName)
facesContext
- resourceName
- libraryName
- public void markResourceRendered(FacesContext facesContext, String resourceName, String libraryName)
facesContext
- resourceName
- libraryName
- Copyright © 2020 The Apache Software Foundation. All rights reserved.