Package org.omnifaces.resourcehandler
Class CombinedResource
- java.lang.Object
-
- jakarta.faces.application.ViewResource
-
- jakarta.faces.application.Resource
-
- org.omnifaces.resourcehandler.DynamicResource
-
- org.omnifaces.resourcehandler.CombinedResource
-
public class CombinedResource extends DynamicResource
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
Constructors Constructor Description CombinedResource(String resourceName, Integer cacheTTL)
Constructs a new combined resource based on the given resource name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
getInputStream()
long
getLastModified()
Returns the "last modified" timestamp of this resource.-
Methods inherited from class org.omnifaces.resourcehandler.DynamicResource
getRequestPath, getResponseHeaders, getURL, setLastModified, userAgentNeedsUpdate
-
Methods inherited from class jakarta.faces.application.Resource
getContentType, getLibraryName, getResourceName, setContentType, setLibraryName, setResourceName, toString
-
-
-
-
Constructor Detail
-
CombinedResource
public CombinedResource(String resourceName, Integer cacheTTL)
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 Detail
-
getLastModified
public long getLastModified()
Description copied from class:DynamicResource
Returns the "last modified" timestamp of this resource.- Overrides:
getLastModified
in classDynamicResource
- Returns:
- The "last modified" timestamp of this resource.
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStream
in classResource
- Throws:
IOException
-
-