Package dev.enola.web
Class StaticWebHandler
java.lang.Object
dev.enola.web.StaticWebHandler
- All Implemented Interfaces:
WebHandler
WebHandler
which servers static web content using Enola Resource I/O.
Useful e.g. for fixed HTML, CSS + JS files, or WebJars.
-
Constructor Summary
ConstructorsConstructorDescriptionStaticWebHandler
(String uriPrefix, File directory) StaticWebHandler
(String uriPrefix, String classpathPrefix) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture
<ReadableResource>
-
Constructor Details
-
StaticWebHandler
-
StaticWebHandler
-
-
Method Details
-
handle
- Specified by:
handle
in interfaceWebHandler
-