protected static class DefaultResourceLoader.ClassPathContextResource extends ClassPathResource implements ContextResource
| Constructor and Description |
|---|
ClassPathContextResource(java.lang.String path,
java.lang.ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
Resource |
createRelative(java.lang.String relativePath)
This implementation creates a ClassPathResource, applying the given path
relative to the path of the underlying resource of this descriptor.
|
java.lang.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(java.lang.String path,
java.lang.ClassLoader classLoader)
public java.lang.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(java.lang.String relativePath)
ClassPathResourcecreateRelative in interface ResourcecreateRelative in class ClassPathResourcerelativePath - the relative path (relative to this resource)StringUtils.applyRelativePath(String, String)