public final class WebApplicationPath extends Object implements IResourceFinder
IResourceFinder
that looks in a folder in the webapp context path. It will
not load files inside WEB-INF.Constructor and Description |
---|
WebApplicationPath(javax.servlet.ServletContext servletContext,
String path)
Constructor
|
public WebApplicationPath(javax.servlet.ServletContext servletContext, String path)
servletContext
- The webapplication context where the resources must be loaded frompath
- The path inside the app context where to look.public IResourceStream find(Class<?> clazz, String pathname)
IResourceFinder
find
in interface IResourceFinder
clazz
- The class requesting the resource streampathname
- The filename with possible pathIResourceFinder.find(Class, String)
public String toString()
toString
in class Object
Object.toString()
Copyright © 2006–2021 Apache Software Foundation. All rights reserved.