protected static class DefaultResourceLoader.ClassPathContextResource extends ClassPathResource implements ContextResource
| Constructor and Description |
|---|
ClassPathContextResource(String path,
ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
Resource |
createRelative(String relativePath)
This implementation creates a ClassPathResource, applying the given path
relative to the path of the underlying resource of this descriptor.
|
String |
getPathWithinContext()
Return the path within the enclosing 'context'.
|
equals, exists, getClassLoader, getDescription, getFilename, getInputStream, getPath, getURL, hashCode, resolveURLcontentLength, customizeConnection, customizeConnection, getFile, getFile, getFileForLastModifiedCheck, isReadable, lastModifiedgetURI, isOpen, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontentLength, exists, getDescription, getFile, getFilename, getURI, getURL, isOpen, isReadable, lastModifiedgetInputStreampublic ClassPathContextResource(String path, ClassLoader classLoader)
public String getPathWithinContext()
ContextResourceThis is typically path relative to a context-specific root directory, e.g. a ServletContext root or a PortletContext root.
getPathWithinContext in interface ContextResourcepublic Resource createRelative(String relativePath)
ClassPathResourcecreateRelative in interface ResourcecreateRelative in class ClassPathResourcerelativePath - the relative path (relative to this resource)StringUtils.applyRelativePath(String, String)