public class DefaultResourceSet extends java.lang.Object implements org.springframework.context.ResourceLoaderAware, org.springframework.beans.factory.InitializingBean, ResourceSet
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_EXCLUDES |
Constructor and Description |
---|
DefaultResourceSet() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
org.springframework.core.io.ResourceLoader |
getResourceLoaderToUse()
Can be overridden in order to provide the proper resource loader used to
resolve resources.
|
org.springframework.core.io.support.ResourcePatternResolver |
getResourcePatternResolver() |
java.util.Map<java.lang.String,org.springframework.core.io.Resource> |
listResources()
List the resources, identified by their relative path.
|
protected void |
processInclude(java.util.Map<java.lang.String,org.springframework.core.io.Resource> res,
java.lang.String include,
java.lang.String baseResUrl) |
void |
setBase(java.lang.String base) |
void |
setExclude(java.lang.String exclude) |
void |
setExcludePathMatcher(org.springframework.util.PathMatcher excludePathMatcher) |
void |
setExcludes(java.util.List<java.lang.String> excludes) |
void |
setInclude(java.lang.String include) |
void |
setIncludes(java.util.List<java.lang.String> includes) |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
void |
setResourcePatternResolver(org.springframework.core.io.support.ResourcePatternResolver resourcePatternResolver) |
void |
setUseDefaultExcludes(java.lang.Boolean useDefaultExcludes) |
public static final java.lang.String DEFAULT_EXCLUDES
public java.util.Map<java.lang.String,org.springframework.core.io.Resource> listResources()
listResources
in interface ResourceSet
protected void processInclude(java.util.Map<java.lang.String,org.springframework.core.io.Resource> res, java.lang.String include, java.lang.String baseResUrl) throws java.io.IOException
java.io.IOException
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader
in interface org.springframework.context.ResourceLoaderAware
public org.springframework.core.io.ResourceLoader getResourceLoaderToUse()
public void setBase(java.lang.String base)
public void setInclude(java.lang.String include)
public void setIncludes(java.util.List<java.lang.String> includes)
public void setExclude(java.lang.String exclude)
public void setExcludes(java.util.List<java.lang.String> excludes)
public void setUseDefaultExcludes(java.lang.Boolean useDefaultExcludes)
public void setExcludePathMatcher(org.springframework.util.PathMatcher excludePathMatcher)
public void setResourcePatternResolver(org.springframework.core.io.support.ResourcePatternResolver resourcePatternResolver)
public org.springframework.core.io.support.ResourcePatternResolver getResourcePatternResolver()
Copyright © 2007–2020. All rights reserved.