Package org.apache.myfaces.resource
Class ResourceHandlerSupport
java.lang.Object
org.apache.myfaces.resource.ResourceHandlerSupport
- Direct Known Subclasses:
- BaseResourceHandlerSupport
A utility class to isolate a ResourceHandler implementation from its
 underlying implementation
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract StringcalculateResourceBasePath(FacesContext facesContext) Calculate the resource base path.abstract ContractResourceLoader[]Return an array of resource loaders used to find resources associated with a contract.abstract longReturn the time that should be set on "Expires" header in a resource.abstract ResourceLoader[]Return an array of resource loaders used to find resources.abstract longReturn the time when the app started.abstract ResourceLoader[]Return an array of resource loaders used to find resources that can be located using ResourceHandler.createViewResource().
- 
Constructor Details- 
ResourceHandlerSupportpublic ResourceHandlerSupport()
 
- 
- 
Method Details- 
calculateResourceBasePathCalculate 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()
- 
getResourceLoadersReturn an array of resource loaders used to find resources. The order of ResourceLoaders define its precedence.- Returns:
 
- 
getContractResourceLoadersReturn an array of resource loaders used to find resources associated with a contract. The order of ContractResourceLoaders define its precedence.- Returns:
- Since:
- 2.2
 
- 
getViewResourceLoadersReturn an array of resource loaders used to find resources that can be located using ResourceHandler.createViewResource(). The order of ResourceLoaders define its precedence.- Returns:
- Since:
- 2.2
 
- 
getStartupTimepublic abstract long getStartupTime()Return the time when the app started. This is useful to set the "Last-Modified" header in some specific cases.- Returns:
 
- 
getMaxTimeExpirespublic abstract long getMaxTimeExpires()Return the time that should be set on "Expires" header in a resource.- Returns:
 
- 
getResourceIdentifier
 
-