wicket.util.file
Class WebApplicationPath
java.lang.Object
wicket.util.file.WebApplicationPath
- All Implemented Interfaces:
- IResourceFinder, IResourcePath
public final class WebApplicationPath
- extends java.lang.Object
- implements IResourcePath
Mantains a list of folders as a path.
- Author:
- Johan Compagner
|
Constructor Summary |
WebApplicationPath(javax.servlet.ServletContext servletContext)
Constructor |
|
Method Summary |
void |
add(java.lang.String folder)
|
java.net.URL |
find(java.lang.String pathname)
Looks for a given pathname along this path |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WebApplicationPath
public WebApplicationPath(javax.servlet.ServletContext servletContext)
- Constructor
- Parameters:
servletContext - The webapplication context where the resources must be loaded
from
add
public void add(java.lang.String folder)
- Specified by:
add in interface IResourcePath
- Parameters:
folder - add a path that is lookup through the servlet context
find
public java.net.URL find(java.lang.String pathname)
- Looks for a given pathname along this path
- Specified by:
find in interface IResourceFinder
- Parameters:
pathname - The filename with possible path
- Returns:
- The file located on the path
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
- See Also:
Object.toString()
Copyright © 2004-2007 Wicket developers. All Rights Reserved.