类 AbstractResourceResolver
java.lang.Object
cn.taketoday.web.resource.AbstractResourceResolver
- 所有已实现的接口:
ResourceResolver
- 直接已知子类:
CachingResourceResolver,EncodedResourceResolver,PathResourceResolver,VersionResourceResolver,WebJarsResourceResolver
Base class for
ResourceResolver
implementations. Provides consistent logging.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明cn.taketoday.core.io.ResourceresolveResource(RequestContext request, String requestPath, List<? extends cn.taketoday.core.io.Resource> locations, ResourceResolvingChain chain) Resolve the supplied request and request path to aResourcethat exists under one of the given resource locations.protected abstract cn.taketoday.core.io.ResourceresolveResourceInternal(RequestContext request, String requestPath, List<? extends cn.taketoday.core.io.Resource> locations, ResourceResolvingChain chain) resolveUrlPath(String resourceUrlPath, List<? extends cn.taketoday.core.io.Resource> locations, ResourceResolvingChain chain) Resolve the externally facing public URL path for clients to use to access the resource that is located at the given internal resource path.protected abstract StringresolveUrlPathInternal(String resourceUrlPath, List<? extends cn.taketoday.core.io.Resource> locations, ResourceResolvingChain chain)
-
字段详细资料
-
logger
protected final cn.taketoday.logging.Logger logger
-
-
构造器详细资料
-
AbstractResourceResolver
public AbstractResourceResolver()
-
-
方法详细资料
-
resolveResource
@Nullable public cn.taketoday.core.io.Resource resolveResource(@Nullable RequestContext request, String requestPath, List<? extends cn.taketoday.core.io.Resource> locations, ResourceResolvingChain chain) 从接口复制的说明:ResourceResolverResolve the supplied request and request path to aResourcethat exists under one of the given resource locations.- 指定者:
resolveResource在接口中ResourceResolver- 参数:
request- the current request (may not be present in some calls)requestPath- the portion of the request path to uselocations- the locations to search in when looking up resourceschain- the chain of remaining resolvers to delegate to- 返回:
- the resolved resource, or
nullif unresolved
-
resolveUrlPath
@Nullable public String resolveUrlPath(String resourceUrlPath, List<? extends cn.taketoday.core.io.Resource> locations, ResourceResolvingChain chain) 从接口复制的说明:ResourceResolverResolve 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在接口中ResourceResolver- 参数:
resourceUrlPath- the internal resource pathlocations- the locations to search in when looking up resourceschain- the chain of resolvers to delegate to- 返回:
- the resolved public URL path, or
nullif unresolved
-
resolveResourceInternal
@Nullable protected abstract cn.taketoday.core.io.Resource resolveResourceInternal(@Nullable RequestContext request, String requestPath, List<? extends cn.taketoday.core.io.Resource> locations, ResourceResolvingChain chain) -
resolveUrlPathInternal
@Nullable protected abstract String resolveUrlPathInternal(String resourceUrlPath, List<? extends cn.taketoday.core.io.Resource> locations, ResourceResolvingChain chain)
-