Class WebApplicationPath

  • All Implemented Interfaces:
    org.apache.wicket.util.file.IResourceFinder

    public final class WebApplicationPath
    extends Object
    implements org.apache.wicket.util.file.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 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 org.apache.wicket.util.resource.IResourceStream find​(Class<?> clazz,
                                                                    String pathname)
        Specified by:
        find in interface org.apache.wicket.util.file.IResourceFinder
        See Also:
        IResourceFinder.find(Class, String)