org.springframework.web.context.support

Class ServletContextResourceLoader

    • Constructor Detail

      • ServletContextResourceLoader

        public ServletContextResourceLoader(ServletContext servletContext)
        Create a new ServletContextResourceLoader.
        Parameters:
        servletContext - the ServletContext to load resources with
    • Method Detail

      • getResourceByPath

        protected Resource getResourceByPath(java.lang.String path)
        This implementation supports file paths beneath the root of the web application.
        Overrides:
        getResourceByPath in class DefaultResourceLoader
        Parameters:
        path - the path to the resource
        Returns:
        the corresponding Resource handle
        See Also:
        ServletContextResource