Uses of Interface
org.apache.tapestry5.services.assets.StreamableResource
Packages that use StreamableResource
Package
Description
[INTERNAL USE ONLY] internal service classes; API subject to change
[INTERNAL USE ONLY] asset support services; API subject to change
Various services for assets (e.g., images, JavaScript and CSS files)
-
Uses of StreamableResource in org.apache.tapestry5.internal.services
Methods in org.apache.tapestry5.internal.services with parameters of type StreamableResourceModifier and TypeMethodDescriptionprotected booleanAbstractAssetFactory.isCompressable(StreamableResource resource) booleanResourceStreamer.streamResource(StreamableResource resource, String providedChecksum, Set<ResourceStreamer.Options> options) Streams a resource that has been assembled elsewhere.booleanResourceStreamerImpl.streamResource(Resource resource, StreamableResource streamable, String providedChecksum, Set<ResourceStreamer.Options> options) booleanResourceStreamerImpl.streamResource(StreamableResource streamable, String providedChecksum, Set<ResourceStreamer.Options> options) -
Uses of StreamableResource in org.apache.tapestry5.internal.services.assets
Classes in org.apache.tapestry5.internal.services.assets that implement StreamableResourceModifier and TypeClassDescriptionclassGZip compressed representation of aStreamableResource.classMethods in org.apache.tapestry5.internal.services.assets that return StreamableResourceModifier and TypeMethodDescriptionStreamableResourceImpl.addResponseCustomizer(ResponseCustomizer customizer) JavaScriptStackAssembler.assembleJavaScriptResourceForStack(String stackName, boolean compress, JavaScriptAggregationStrategy javascriptAggregationStrategy) Obtains theJavaScriptStackby name, and then uses theStreamableResourceSourceservice to obtain the assets, which are combined together.JavaScriptStackAssemblerImpl.assembleJavaScriptResourceForStack(String stackName, boolean compress, JavaScriptAggregationStrategy javascriptAggregationStrategy) CSSURLRewriter.getStreamableResource(Resource baseResource, StreamableResourceProcessing processing, ResourceDependencies dependencies) DelegatingSRS.getStreamableResource(Resource baseResource, StreamableResourceProcessing processing, ResourceDependencies dependencies) JavaScriptStackMinimizeDisabler.getStreamableResource(Resource baseResource, StreamableResourceProcessing processing, ResourceDependencies dependencies) SRSCachingInterceptor.getStreamableResource(Resource baseResource, StreamableResourceProcessing processing, ResourceDependencies dependencies) SRSCompressingInterceptor.getStreamableResource(Resource baseResource, StreamableResourceProcessing processing, ResourceDependencies dependencies) SRSMinimizingInterceptor.getStreamableResource(Resource baseResource, StreamableResourceProcessing processing, ResourceDependencies dependencies) StreamableResourceSourceImpl.getStreamableResource(Resource baseResource, StreamableResourceProcessing processing, ResourceDependencies dependencies) UTF8ForTextAssets.getStreamableResource(Resource baseResource, StreamableResourceProcessing processing, ResourceDependencies dependencies) MasterResourceMinimizer.minimize(StreamableResource resource) Does nothing; an override of this service can be installed to provide minimization.StreamableResourceImpl.withContentType(ContentType newContentType) Methods in org.apache.tapestry5.internal.services.assets with parameters of type StreamableResourceModifier and TypeMethodDescriptionAssetPathConstructorImpl.constructAssetPath(String virtualFolder, String path, StreamableResource resource) AssetChecksumGeneratorImpl.generateChecksum(StreamableResource resource) protected booleanSRSCachingInterceptor.isCacheable(StreamableResource resource) Always returns true; a subclass may extend this to only cache the resource in some circumstances.protected booleanSRSCompressedCachingInterceptor.isCacheable(StreamableResource resource) Return true only if the resource is compressed.MasterResourceMinimizer.minimize(StreamableResource resource) Does nothing; an override of this service can be installed to provide minimization.Constructors in org.apache.tapestry5.internal.services.assets with parameters of type StreamableResourceModifierConstructorDescriptionCompressedStreamableResource(StreamableResource base, AssetChecksumGenerator assetChecksumGenerator) -
Uses of StreamableResource in org.apache.tapestry5.services.assets
Methods in org.apache.tapestry5.services.assets that return StreamableResourceModifier and TypeMethodDescriptionStreamableResource.addResponseCustomizer(ResponseCustomizer customizer) Returns a new StreamableResource that includes the provided customizer.StreamableResourceSource.getStreamableResource(Resource baseResource, StreamableResourceProcessing processing, ResourceDependencies dependencies) Converts a Resource (which must be non-null and exist) into a streamable resource, along with some additional optional behaviors.ResourceMinimizer.minimize(StreamableResource resource) Checks the content type of the resource and applies an appropriate minimization to it if possible.StreamableResource.withContentType(ContentType newContentType) Returns a new StreamableResource instance with the new content type.Methods in org.apache.tapestry5.services.assets with parameters of type StreamableResourceModifier and TypeMethodDescriptionAssetPathConstructor.constructAssetPath(String virtualFolder, String path, StreamableResource resource) Constructs an asset URL path from the virtual folder and path (within the virtual folder).voidResponseCustomizer.customizeResponse(StreamableResource resource, Response response) Invoked to customize the response; these are invoked in the order they are added to the StreamableResource.AssetChecksumGenerator.generateChecksum(StreamableResource resource) Given a streamable resource, generates an MD5 checksum of the resource's contents.ResourceMinimizer.minimize(StreamableResource resource) Checks the content type of the resource and applies an appropriate minimization to it if possible. -
Uses of StreamableResource in org.apache.tapestry5.webresources
Methods in org.apache.tapestry5.webresources with parameters of type StreamableResourceModifier and TypeMethodDescriptionOptional<com.google.javascript.jscomp.CompilerOptions>GoogleClosureMinimizerOptionsProvider.providerOptions(StreamableResource resource) Returns the compiler options to be used by GoogleClosureMinimizer.