Example usage for Java org.springframework.web.context.support ServletContextResource fields, constructors, methods, implement or subclass
The text is from its open source code.
ServletContextResource(ServletContext servletContext, String path) Create a new ServletContextResource. |
boolean | exists() This implementation checks ServletContext.getResource . |
File | getFile() This implementation resolves "file:" URLs or alternatively delegates to ServletContext.getRealPath , throwing a FileNotFoundException if not found or not resolvable. |
InputStream | getInputStream() This implementation delegates to ServletContext.getResourceAsStream , but throws a FileNotFoundException if no resource found. |
String | getPath() Return the path for this resource. |
ServletContext | getServletContext() Return the ServletContext for this resource. |