Interface ContextResource
-
- All Superinterfaces:
InputStreamSource,Resource
- All Known Implementing Classes:
DefaultResourceLoader.ClassPathContextResource
public interface ContextResource extends Resource
Extended interface for a resource that is loaded from an enclosing 'context', e.g. from ajavax.servlet.ServletContextor ajavax.portlet.PortletContextbut also from plain classpath paths or relative file system paths (specified without an explicit prefix, hence applying relative to the localResourceLoader's context).- Since:
- 2.5
- Author:
- Juergen Hoeller
- See Also:
org.springframework.web.context.support.ServletContextResource,org.springframework.web.portlet.context.PortletContextResource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetPathWithinContext()Return the path within the enclosing 'context'.-
Methods inherited from interface org.hotswap.agent.util.spring.io.resource.InputStreamSource
getInputStream
-
Methods inherited from interface org.hotswap.agent.util.spring.io.resource.Resource
contentLength, createRelative, exists, getDescription, getFile, getFilename, getURI, getURL, isOpen, isReadable, lastModified
-
-
-
-
Method Detail
-
getPathWithinContext
String getPathWithinContext()
Return the path within the enclosing 'context'.This is typically path relative to a context-specific root directory, e.g. a ServletContext root or a PortletContext root.
-
-