public class BaseResourceHandlerSupport extends ResourceHandlerSupport
| Modifier and Type | Field and Description | 
|---|---|
| static String | RESOURCE_MAX_TIME_EXPIRESSet the max time in miliseconds set on the "Expires" header for a resource rendered by 
 the default ResourceHandler. | 
| Constructor and Description | 
|---|
| BaseResourceHandlerSupport() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected static FacesServletMapping | calculateFacesServletMapping(String servletPath,
                            String pathInfo)Deprecated.  | 
| String | calculateResourceBasePath(FacesContext facesContext)Calculate the resource base path. | 
| ContractResourceLoader[] | getContractResourceLoaders()Return an array of resource loaders used to find resources 
 associated with a contract. | 
| protected FacesServletMapping | getFacesServletMapping(FacesContext context)Read the web.xml file that is in the classpath and parse its internals to
 figure out how the FacesServlet is mapped for the current webapp. | 
| String | getMapping()Get the mapping used as prefix(/faces) or sufix(.jsf) | 
| long | getMaxTimeExpires()Return the time that should be set on "Expires" header in a resource. | 
| ResourceLoader[] | getResourceLoaders()Return an array of resource loaders used to find resources. | 
| long | getStartupTime()Return the time when the app started. | 
| ResourceLoader[] | getViewResourceLoaders()Return an array of resource loaders used to find resources
 that can be located using ResourceHandler.createViewResource(). | 
| boolean | isExtensionMapping()Check if the mapping used is done using extensions (.xhtml, .jsf)
 or if it is not (/faces/*) | 
getResourceIdentifier@JSFWebConfigParam(since="2.0",
                   defaultValue="604800000",
                   group="resources",
                   tags="performance")
public static final String RESOURCE_MAX_TIME_EXPIRES
public ResourceLoader[] getResourceLoaders()
ResourceHandlerSupportgetResourceLoaders in class ResourceHandlerSupportpublic ContractResourceLoader[] getContractResourceLoaders()
ResourceHandlerSupportgetContractResourceLoaders in class ResourceHandlerSupportpublic ResourceLoader[] getViewResourceLoaders()
ResourceHandlerSupportgetViewResourceLoaders in class ResourceHandlerSupportpublic String calculateResourceBasePath(FacesContext facesContext)
ResourceHandlerSupportcalculateResourceBasePath in class ResourceHandlerSupportpublic boolean isExtensionMapping()
ResourceHandlerSupportisExtensionMapping in class ResourceHandlerSupportpublic String getMapping()
ResourceHandlerSupportgetMapping in class ResourceHandlerSupportprotected FacesServletMapping getFacesServletMapping(FacesContext context)
@Deprecated protected static FacesServletMapping calculateFacesServletMapping(String servletPath, String pathInfo)
servletPath - The servletPath of the current requestpathInfo - The pathInfo of the current requestpublic long getStartupTime()
ResourceHandlerSupportgetStartupTime in class ResourceHandlerSupportpublic long getMaxTimeExpires()
ResourceHandlerSupportgetMaxTimeExpires in class ResourceHandlerSupportCopyright © 2025 The Apache Software Foundation. All rights reserved.