Class DefaultResourceLoader.ClassPathContextResource
java.lang.Object
nl.basjes.parse.useragent.utils.springframework.core.io.AbstractResource
nl.basjes.parse.useragent.utils.springframework.core.io.AbstractFileResolvingResource
nl.basjes.parse.useragent.utils.springframework.core.io.ClassPathResource
nl.basjes.parse.useragent.utils.springframework.core.io.DefaultResourceLoader.ClassPathContextResource
- All Implemented Interfaces:
InputStreamSource, Resource
- Enclosing class:
DefaultResourceLoader
protected static class DefaultResourceLoader.ClassPathContextResource
extends ClassPathResource
implements Resource
ClassPathResource that explicitly expresses a context-relative path
through implementing the ContextResource interface.
- Since:
- 10.03.2004
- Author:
- Juergen Hoeller see FileSystemResourceLoader see org.springframework.context.support.ClassPathXmlApplicationContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRelative(String relativePath) This implementation creates a ClassPathResource, applying the given path relative to the path of the underlying resource of this descriptor.Methods inherited from class ClassPathResource
equals, exists, getClassLoader, getDescription, getFilename, getInputStream, getPath, getURL, hashCode, resolveURLMethods inherited from class AbstractFileResolvingResource
contentLength, customizeConnection, customizeConnection, getFile, getFile, isFile, isFileMethods inherited from class AbstractResource
getURI, isOpen, toStringMethods inherited from interface InputStreamSource
getInputStreamMethods inherited from interface Resource
contentLength, exists, getDescription, getFile, getFilename, getURI, getURL, isFile, isOpen
-
Constructor Details
-
ClassPathContextResource
-
-
Method Details
-
createRelative
Description copied from class:ClassPathResourceThis implementation creates a ClassPathResource, applying the given path relative to the path of the underlying resource of this descriptor. see org.springframework.util.StringUtils#applyRelativePath(String, String)- Specified by:
createRelativein interfaceResource- Overrides:
createRelativein classClassPathResource- Parameters:
relativePath- the relative path (relative to this resource)- Returns:
- the resource handle for the relative resource
-