org.springframework.core.io.support
Class ResourcePatternUtils

java.lang.Object
  extended by 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)

Constructor Summary
ResourcePatternUtils()
           
 
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
 

Constructor Detail

ResourcePatternUtils

public ResourcePatternUtils()
Method Detail

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.