程序包的使用
cn.taketoday.web.resource
程序包
说明
Support classes for serving static resources.
-
类说明An
HttpRequestHandlerfor serving static files using the Servlet container's "default" Servlet.HttpRequestHandlerthat serves static resources in an optimized way according to the guidelines of Page Speed, YSlow, etc.A strategy for resolving a request to a server-side resource.An abstraction for transforming the content of a resource.A central component to use to obtain the public URL path that clients should use to access a static resource. -
类说明Base class for
ResourceResolverimplementations.Abstract base class forVersionStrategyimplementations.Abstract base class forCssLinkResourceTransformer.LinkParserimplementations.Extract content chunks that represent links.Default immutable implementation ofResourceResolvingChain.Default immutable implementation ofResourceTransformerChain.Extended interface for aResourceto be written to an HTTP response.HttpRequestHandlerthat serves static resources in an optimized way according to the guidelines of Page Speed, YSlow, etc.A strategy for resolving a request to a server-side resource.A contract for invoking a chain ofResourceResolverswhere each resolver is given a reference to the chain allowing it to delegate when necessary.An abstraction for transforming the content of a resource.A contract for invoking a chain ofResourceTransformerswhere each resolver is given a reference to the chain allowing it to delegate when necessary.A base class for aResourceTransformerwith an optional helper method for resolving public links within a transformed resource.A central component to use to obtain the public URL path that clients should use to access a static resource.A strategy for extracting and embedding a resource version in its URL path.Resolves request paths containing a version string that can be used as part of an HTTP caching strategy in which a resource is cached with a date in the distant future (e.g. 1 year) and cached until the version, and therefore the URL, is changed.An extension ofVersionPathStrategythat adds a method to determine the actual version of aResource.