当前页面:
在线文档首页 >
Spring Framework 1.2.9 API 文档英文版
ResourcePatternUtils (Spring Framework) - Spring Framework 1.2.9 API 文档英文版
org.springframework.core.io.support
Class ResourcePatternUtils
java.lang.Object
org.springframework.core.io.support.ResourcePatternUtils
public abstract class ResourcePatternUtils
- extends Object
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
method returns false
.
- Since:
- 1.2.3
- Author:
- Juergen Hoeller
- See Also:
isUrl(String)
,
ResourceUtils.isUrl(String)
Method Summary |
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 |
ResourcePatternUtils
public ResourcePatternUtils()
isUrl
public 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.
- See Also:
ResourcePatternResolver.CLASSPATH_URL_PREFIX
,
ResourceUtils.CLASSPATH_URL_PREFIX
,
ResourceUtils.isUrl(String)
,
URL
Copyright (c) 2002-2007 The Spring Framework Project.