Package org.apache.myfaces.resource
Class BaseResourceHandlerSupport
java.lang.Object
org.apache.myfaces.resource.ResourceHandlerSupport
org.apache.myfaces.resource.BaseResourceHandlerSupport
- Direct Known Subclasses:
- DefaultResourceHandlerSupport
A ResourceHandlerSupport implementation for use with standard Java Servlet engines,
 ie an engine that supports jakarta.servlet, and uses a standard web.xml file.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncalculateResourceBasePath(FacesContext facesContext) Calculate the resource base path.Return an array of resource loaders used to find resources associated with a contract.longReturn the time that should be set on "Expires" header in a resource.Return an array of resource loaders used to find resources.longReturn the time when the app started.Return an array of resource loaders used to find resources that can be located using ResourceHandler.createViewResource().Methods inherited from class org.apache.myfaces.resource.ResourceHandlerSupportgetResourceIdentifier
- 
Constructor Details- 
BaseResourceHandlerSupportpublic BaseResourceHandlerSupport()
 
- 
- 
Method Details- 
getResourceLoadersDescription copied from class:ResourceHandlerSupportReturn an array of resource loaders used to find resources. The order of ResourceLoaders define its precedence.- Specified by:
- getResourceLoadersin class- ResourceHandlerSupport
- Returns:
 
- 
getContractResourceLoadersDescription copied from class:ResourceHandlerSupportReturn an array of resource loaders used to find resources associated with a contract. The order of ContractResourceLoaders define its precedence.- Specified by:
- getContractResourceLoadersin class- ResourceHandlerSupport
- Returns:
 
- 
getViewResourceLoadersDescription copied from class:ResourceHandlerSupportReturn an array of resource loaders used to find resources that can be located using ResourceHandler.createViewResource(). The order of ResourceLoaders define its precedence.- Specified by:
- getViewResourceLoadersin class- ResourceHandlerSupport
- Returns:
 
- 
calculateResourceBasePathDescription copied from class:ResourceHandlerSupportCalculate the resource base path. It should extract a string like: ResourceHandler.RESOURCE_IDENTIFIER + '/' + getResourceName() For example: /jakarta.faces.resource/image.jpg This is used on ResourceHandler.handleResourceRequest()- Specified by:
- calculateResourceBasePathin class- ResourceHandlerSupport
 
- 
getStartupTimepublic long getStartupTime()Description copied from class:ResourceHandlerSupportReturn the time when the app started. This is useful to set the "Last-Modified" header in some specific cases.- Specified by:
- getStartupTimein class- ResourceHandlerSupport
- Returns:
 
- 
getMaxTimeExpirespublic long getMaxTimeExpires()Description copied from class:ResourceHandlerSupportReturn the time that should be set on "Expires" header in a resource.- Specified by:
- getMaxTimeExpiresin class- ResourceHandlerSupport
- Returns:
 
 
-