Interface StaticSiteServiceDefinition


  • @Immutable
    public interface StaticSiteServiceDefinition
    A definition of a StaticSiteService that should be registered to a Server. Provide it from a Module to allow automatic registration.
    • Method Detail

      • urlRoot

        default java.lang.String urlRoot()
        The URL root to serve the site from. Defaults to "/".
      • classpathRoot

        java.lang.String classpathRoot()
        The root directory in the classpath to serve resources from.
      • staticPath

        default java.lang.String staticPath()
        The URL path under urlRoot() from which static resources will be served. Defaults to "/static".