public interface ContextResource extends Resource
ServletContext
or a
PortletContext
but also from plain classpath paths
or relative file system paths (specified without an explicit prefix,
hence applying relative to the local ResourceLoader
's context).ServletContextResource
,
PortletContextResource
Modifier and Type | Method and Description |
---|---|
String |
getPathWithinContext()
Return the path within the enclosing 'context'.
|
contentLength, createRelative, exists, getDescription, getFile, getFilename, getURI, getURL, isOpen, isReadable, lastModified
getInputStream
String getPathWithinContext()
This is typically path relative to a context-specific root directory, e.g. a ServletContext root or a PortletContext root.