Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » core » io » [javadoc | source]
org.springframework.core.io
public interface: ContextResource [javadoc | source]

All Implemented Interfaces:
    Resource

All Known Implementing Classes:
    FileSystemContextResource, ServletContextResource, PortletContextResource, ClassPathContextResource

Extended interface for a resource that is loaded from an enclosing 'context', e.g. from a javax.servlet.ServletContext or a javax.portlet.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).
Method from org.springframework.core.io.ContextResource Summary:
getPathWithinContext
Method from org.springframework.core.io.ContextResource Detail:
 public 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.