org.apache.wicket.core.util.file
Class WebApplicationPath

java.lang.Object
  extended by org.apache.wicket.core.util.file.WebApplicationPath
All Implemented Interfaces:
IResourceFinder

public final class WebApplicationPath
extends Object
implements IResourceFinder

An IResourceFinder that looks in a folder in the webapp context path. It will not load files inside WEB-INF.

Author:
Johan Compagner, Carl-Eric Menzel

Constructor Summary
WebApplicationPath(javax.servlet.ServletContext servletContext, String path)
          Constructor
 
Method Summary
 IResourceStream find(Class<?> clazz, String pathname)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebApplicationPath

public WebApplicationPath(javax.servlet.ServletContext servletContext,
                          String path)
Constructor

Parameters:
servletContext - The webapplication context where the resources must be loaded from
path - The path inside the app context where to look.
Method Detail

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-2013 Apache Software Foundation. All Rights Reserved.