org.apache.wicket.util.file
Class WebApplicationPath
java.lang.Object
org.apache.wicket.util.file.WebApplicationPath
- All Implemented Interfaces:
- IResourceFinder, IResourcePath
public final class WebApplicationPath
- extends Object
- implements IResourcePath
Maintain a list of paths which might either be ordinary folders of the filesystem or relative
paths to the web application's servlet context.
- Author:
- Johan Compagner
Constructor Summary |
WebApplicationPath(javax.servlet.ServletContext servletContext)
Constructor |
WebApplicationPath
public WebApplicationPath(javax.servlet.ServletContext servletContext)
- Constructor
- Parameters:
servletContext
- The webapplication context where the resources must be loaded from
add
public void add(String path)
- Specified by:
add
in interface IResourcePath
- Parameters:
path
- add a path that is lookup through the servlet context
find
public IResourceStream find(Class<?> clazz,
String pathname)
- Specified by:
find
in interface IResourceFinder
- See Also:
IResourceFinder.find(Class, String)
toString
public String toString()
- Overrides:
toString
in class Object
- See Also:
Object.toString()
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.