| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.core.io.support.ResourcePatternUtils
public abstract class ResourcePatternUtils
Utility class for determining whether a given URL is a resource location that can be loaded via a ResourcePatternResolver.
Callers will usually assume that a location is a relative path
 if the isUrl(String) method returns false.
| Constructor Summary | |
|---|---|
| ResourcePatternUtils() | |
| Method Summary | |
|---|---|
| static ResourcePatternResolver | getResourcePatternResolver(ResourceLoader resourceLoader)Return a default ResourcePatternResolver for the given ResourceLoader. | 
| static boolean | isUrl(String resourceLocation)Return whether the given resource location is a URL: either a special "classpath" or "classpath*" pseudo URL or a standard URL. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ResourcePatternUtils()
| Method Detail | 
|---|
public static boolean isUrl(String resourceLocation)
resourceLocation - the location String to check
ResourcePatternResolver.CLASSPATH_ALL_URL_PREFIX, 
ResourceUtils.CLASSPATH_URL_PREFIX, 
ResourceUtils.isUrl(String), 
URLpublic static ResourcePatternResolver getResourcePatternResolver(ResourceLoader resourceLoader)
This might be the ResourceLoader itself, if it implements the ResourcePatternResolver extension, or a PathMatchingResourcePatternResolver built on the given ResourceLoader.
resourceLoader - the ResourceLoader to build a pattern resolver for
 (not null)
PathMatchingResourcePatternResolver| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||