Home » Spring-Framework-090522 » org.springframework » web » context » support » [javadoc | source]
org.springframework.web.context.support
public class: ServletContextResourceLoader [javadoc | source]
java.lang.Object
   org.springframework.core.io.DefaultResourceLoader
      org.springframework.web.context.support.ServletContextResourceLoader

All Implemented Interfaces:
    ResourceLoader

ResourceLoader implementation that resolves paths as ServletContext resources, for use outside a WebApplicationContext (for example, in a HttpServletBean or GenericFilterBean subclass).

Within a WebApplicationContext, resource paths are automatically resolved as ServletContext resources by the context implementation.

Constructor:
 public ServletContextResourceLoader(ServletContext servletContext) 
    Create a new ServletContextResourceLoader.
    Parameters:
    servletContext - the ServletContext to load resources with
Method from org.springframework.web.context.support.ServletContextResourceLoader Summary:
getResourceByPath
Methods from org.springframework.core.io.DefaultResourceLoader:
getClassLoader,   getResource,   getResourceByPath,   setClassLoader
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.web.context.support.ServletContextResourceLoader Detail:
 protected Resource getResourceByPath(String path) 
    This implementation supports file paths beneath the root of the web application.