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
Resource
orStreamableResource
which can be incorporated into the client URL of an Asset.Encapsulates the logic or creating the path portion of an asset URL, including hooking theAssetPathConverter
into the generation.Handler for asset requests, which expose some kind ofAsset
to the user agent (i.e., the client web browser).Indicates how the content inside aStreamableResource
is (potentially) compressed.Used to determine the MIME content type for a resource.Used by someResourceTransformer
implementations 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 aResource
and 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 aResource
as aStreamableResource
.ConvertsResource
s intoStreamableResource
s, and may be responsible for transforming resources based on file extension.