类 DefaultResourceResolvingChain
java.lang.Object
cn.taketoday.web.resource.DefaultResourceResolvingChain
- 所有已实现的接口:
ResourceResolvingChain
Default immutable implementation of
ResourceResolvingChain.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev, Harry Yang
-
字段概要
字段 -
构造器概要
构造器限定符构造器说明privateDefaultResourceResolvingChain(ResourceResolver resolver, ResourceResolvingChain chain) DefaultResourceResolvingChain(List<? extends ResourceResolver> resolvers) -
方法概要
修饰符和类型方法说明private static DefaultResourceResolvingChaininitChain(ArrayList<? extends ResourceResolver> resolvers) cn.taketoday.core.io.ResourceresolveResource(RequestContext request, String requestPath, List<? extends cn.taketoday.core.io.Resource> locations) Resolve the supplied request and request path to aResourcethat exists under one of the given resource locations.resolveUrlPath(String resourcePath, List<? extends cn.taketoday.core.io.Resource> locations) Resolve the externally facing public URL path for clients to use to access the resource that is located at the given internal resource path.
-
字段详细资料
-
resolver
-
nextChain
-
-
构造器详细资料
-
DefaultResourceResolvingChain
-
DefaultResourceResolvingChain
private DefaultResourceResolvingChain(@Nullable ResourceResolver resolver, @Nullable ResourceResolvingChain chain)
-
-
方法详细资料
-
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) 从接口复制的说明:ResourceResolvingChainResolve the supplied request and request path to aResourcethat exists under one of the given resource locations.- 指定者:
resolveResource在接口中ResourceResolvingChain- 参数:
request- the current requestrequestPath- the portion of the request path to uselocations- the locations to search in when looking up resources- 返回:
- the resolved resource, or
nullif unresolved
-
resolveUrlPath
@Nullable public String resolveUrlPath(String resourcePath, List<? extends cn.taketoday.core.io.Resource> locations) 从接口复制的说明:ResourceResolvingChainResolve 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 pathlocations- the locations to search in when looking up resources- 返回:
- the resolved public URL path, or
nullif unresolved
-