Class WebApplicationPath

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

    public final class WebApplicationPath
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      WebApplicationPath​(javax.servlet.ServletContext servletContext, java.lang.String path)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.wicket.util.resource.IResourceStream find​(java.lang.Class<?> clazz, java.lang.String pathname)  
      java.lang.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,
                                  java.lang.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​(java.lang.Class<?> clazz,
                                                                    java.lang.String pathname)
        Specified by:
        find in interface org.apache.wicket.util.file.IResourceFinder
        See Also:
        IResourceFinder.find(Class, String)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()