Package org.apache.tapestry5.services.assets
package org.apache.tapestry5.services.assets
Various services for assets (e.g., images, JavaScript and CSS files)
-
ClassDescriptionGenerates a checksum of an arbitrary
ResourceorStreamableResourcewhich can be incorporated into the client URL of an Asset.Encapsulates the logic or creating the path portion of an asset URL, including hooking theAssetPathConverterinto the generation.Handler for asset requests, which expose some kind ofAssetto the user agent (i.e., the client web browser).Indicates how the content inside aStreamableResourceis (potentially) compressed.Used to determine the MIME content type for a resource.Used by someResourceTransformerimplementations to track additional dependencies that can arise when the underlying resource being transformed can be dependent on other resources (for instance, if it has the notion of "including" or "importing" content).Certain kinds of resources can be minimized: this primarily refers to JavaScript and CSS, both of which contain whitespace, comments and other features that can be reduced.A transformer is used to read aResourceand pass it through a transformation stage, to get a stream that can be used on the client side.Used to customize the response prior to streaming content to the client; typically this is used to set special headers.An object, derived from aResource, that can be streamed (ultimately, to a client web browser).Defines additional features desired when accessing the content of aResourceas aStreamableResource.ConvertsResources intoStreamableResources, and may be responsible for transforming resources based on file extension.