类 DefaultResourceResolvingChain

java.lang.Object
cn.taketoday.web.resource.DefaultResourceResolvingChain
所有已实现的接口:
ResourceResolvingChain

class DefaultResourceResolvingChain extends Object implements ResourceResolvingChain
Default immutable implementation of ResourceResolvingChain.
从以下版本开始:
4.0
作者:
Rossen Stoyanchev, Harry Yang
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • initChain

      private static DefaultResourceResolvingChain initChain(ArrayList<? extends ResourceResolver> resolvers)
    • resolveResource

      @Nullable public cn.taketoday.core.io.Resource resolveResource(@Nullable RequestContext request, String requestPath, List<? extends cn.taketoday.core.io.Resource> locations)
      从接口复制的说明: ResourceResolvingChain
      Resolve the supplied request and request path to a Resource that exists under one of the given resource locations.
      指定者:
      resolveResource 在接口中 ResourceResolvingChain
      参数:
      request - the current request
      requestPath - the portion of the request path to use
      locations - the locations to search in when looking up resources
      返回:
      the resolved resource, or null if unresolved
    • resolveUrlPath

      @Nullable public String resolveUrlPath(String resourcePath, List<? extends cn.taketoday.core.io.Resource> locations)
      从接口复制的说明: ResourceResolvingChain
      Resolve the externally facing public URL path for clients to use to access the resource that is located at the given internal resource path.

      This is useful when rendering URL links to clients.

      指定者:
      resolveUrlPath 在接口中 ResourceResolvingChain
      参数:
      resourcePath - the internal resource path
      locations - the locations to search in when looking up resources
      返回:
      the resolved public URL path, or null if unresolved