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.
COMPONENT_RESOURCE_KEY
Constructor and Description |
---|
CombinedResource(String resourceName,
Integer cacheTTL)
Constructs a new combined resource based on the given resource name.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream() |
long |
getLastModified()
Returns the "last modified" timestamp of this resource.
|
getRequestPath, getResponseHeaders, getURL, setLastModified, userAgentNeedsUpdate
getContentType, getLibraryName, getResourceName, setContentType, setLibraryName, setResourceName, toString
public CombinedResource(String resourceName, Integer cacheTTL)
DefaultResourceHandler.createResource(String, String)
.resourceName
- The resource name of the combined resource.cacheTTL
- The combined resource content cache TTL.public long getLastModified()
DynamicResource
getLastModified
in class DynamicResource
public InputStream getInputStream() throws IOException
getInputStream
in class Resource
IOException
Copyright © 2012–2018 OmniFaces. All rights reserved.