Class ClasspathFilesHandler

  • All Implemented Interfaces:
    StaticFilesHandler

    public class ClasspathFilesHandler
    extends java.lang.Object
    implements StaticFilesHandler
    Class path Files Handler .

    Retrieves the URI of the request and tries to find a matching resource in the application class path.

    Example:

    Given the URI http://192.168.1.1/my/wonderful/resource.html, the Resource Request Handler, with root directory /my/package/ will try to find the resource /my/package/my/wonderful/resource.html in the application's classpath (using Class.getResourceAsStream(String)).