Class ContentSource


  • public class ContentSource
    extends Object
    Used to serve files from the filesystem or jar-file. In Jetty, this is a replacement for DefaultServlet with the possibility of catch-everything pages, useful for SPA-applications. In addition ContentSource supports serving resource-files from src/main/resources for files loaded from the classpath and supports the webjar-format out of the box.

    Use fromClasspath(String), fromURL(URL) or fromWebJar(String) to get started