java.lang.Object
jakarta.faces.application.ViewResource
jakarta.faces.application.Resource
org.omnifaces.resourcehandler.DynamicResource
org.omnifaces.resourcehandler.CombinedResource
This Resource implementation holds all the necessary information about combined resources in order to
properly serve combined resources on a single HTTP request.
- Author:
- Bauke Scholtz, Stephan Rauh <www.beyondjava.net>
-
Field Summary
Fields inherited from class jakarta.faces.application.Resource
COMPONENT_RESOURCE_KEY -
Constructor Summary
ConstructorsConstructorDescriptionCombinedResource(String resourceName, Integer cacheTTL) Constructs a new combined resource based on the given resource name. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the "last modified" timestamp of this resource.Methods inherited from class org.omnifaces.resourcehandler.DynamicResource
getRequestPath, getResponseHeaders, getURL, setLastModified, userAgentNeedsUpdateMethods inherited from class jakarta.faces.application.Resource
getContentType, getLibraryName, getResourceName, setContentType, setLibraryName, setResourceName, toString
-
Constructor Details
-
CombinedResource
Constructs a new combined resource based on the given resource name. This constructor is only used byDefaultResourceHandler.createResource(String, String).- Parameters:
resourceName- The resource name of the combined resource.cacheTTL- The combined resource content cache TTL.
-
-
Method Details
-
getLastModified
public long getLastModified()Description copied from class:DynamicResourceReturns the "last modified" timestamp of this resource.- Overrides:
getLastModifiedin classDynamicResource- Returns:
- The "last modified" timestamp of this resource.
-
getInputStream
- Specified by:
getInputStreamin classResource- Throws:
IOException
-