Within a WebApplicationContext, resource paths are automatically resolved as ServletContext resources by the context implementation.
getResourceByPath, ServletContextResource, org.springframework.web.context.WebApplicationContext , org.springframework.web.servlet.HttpServletBean , org.springframework.web.filter.GenericFilterBean
| Modifier and Type | Field and Description |
|---|---|
| private final ServletContext |
| Access | Constructor and Description |
|---|---|
| public | ServletContextResourceLoader(ServletContext
the ServletContext to load resources with servletContext)Create a new ServletContextResourceLoader. |
| Modifier and Type | Method and Description |
|---|---|
| protected Resource | getResourceByPath(String
the path to the resource path)Overrides org. This implementation supports file paths beneath the root of the web application. |
| servletContext | back to summary |
|---|---|
| private final ServletContext servletContext | |
| ServletContextResourceLoader | back to summary |
|---|---|
| public ServletContextResourceLoader(ServletContext servletContext) Create a new ServletContextResourceLoader.
| |
| getResourceByPath | back to summary |
|---|---|
| protected Resource getResourceByPath(String path) Overrides org. This implementation supports file paths beneath the root of the web application.
| |