Package org.apache.tapestry5.services.assets
Various services for assets (e.g., images, JavaScript and CSS files)
-
Interface Summary Interface Description AssetChecksumGenerator Generates a checksum of an arbitraryResource
orStreamableResource
which can be incorporated into the client URL of an Asset.AssetPathConstructor Encapsulates the logic or creating the path portion of an asset URL, including hooking theAssetPathConverter
into the generation.AssetRequestHandler Handler for asset requests, which expose some kind ofAsset
to the user agent (i.e., the client web browser).ContentTypeAnalyzer Used to determine the MIME content type for a resource.ResourceDependencies 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).ResourceMinimizer 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.ResourceTransformer 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.ResponseCustomizer Used to customize the response prior to streaming content to the client; typically this is used to set special headers.StreamableResource An object, derived from aResource
, that can be streamed (ultimately, to a client web browser).StreamableResourceSource ConvertsResource
s intoStreamableResource
s, and may be responsible for transforming resources based on file extension. -
Enum Summary Enum Description CompressionStatus Indicates how the content inside aStreamableResource
is (potentially) compressed.StreamableResourceProcessing Defines additional features desired when accessing the content of aResource
as aStreamableResource
.