Interface StaticSiteServiceDefinition
-
@Immutable public interface StaticSiteServiceDefinition
A definition of aStaticSiteService
that should be registered to aServer
. Provide it from aModule
to allow automatic registration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
StaticSiteServiceDefinition.Builder
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.String
classpathRoot()
The root directory in the classpath to serve resources from.default java.lang.String
staticPath()
The URL path underurlRoot()
from which static resources will be served.default java.lang.String
urlRoot()
The URL root to serve the site from.
-
-
-
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 underurlRoot()
from which static resources will be served. Defaults to "/static".
-
-