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 Summary
Constructors -
Method Summary
Modifier 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.ResourceHandlerSupport
getResourceIdentifier
-
Constructor Details
-
BaseResourceHandlerSupport
public BaseResourceHandlerSupport()
-
-
Method Details
-
getResourceLoaders
Description copied from class:ResourceHandlerSupportReturn an array of resource loaders used to find resources. The order of ResourceLoaders define its precedence.- Specified by:
getResourceLoadersin classResourceHandlerSupport- Returns:
-
getContractResourceLoaders
Description 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 classResourceHandlerSupport- Returns:
-
getViewResourceLoaders
Description 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 classResourceHandlerSupport- Returns:
-
calculateResourceBasePath
Description 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 classResourceHandlerSupport
-
getStartupTime
public 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 classResourceHandlerSupport- Returns:
-
getMaxTimeExpires
public long getMaxTimeExpires()Description copied from class:ResourceHandlerSupportReturn the time that should be set on "Expires" header in a resource.- Specified by:
getMaxTimeExpiresin classResourceHandlerSupport- Returns:
-