public interface StaticHandler
extends io.vertx.ext.web.handler.StaticHandler
Usage: In your main HTML file add the following script at the end of the body.
<script src="/hot-reload/script" type="application/javascript"></script>
Once the server stops or reload the handler the script will force a page reload.
During the down time of the server the script will attempt to reconnect every second.
| Modifier and Type | Field and Description |
|---|---|
static io.vertx.core.logging.Logger |
LOGGER |
DEFAULT_ALWAYS_ASYNC_FS, DEFAULT_CACHE_ENTRY_TIMEOUT, DEFAULT_CACHING_ENABLED, DEFAULT_DIRECTORY_LISTING, DEFAULT_DIRECTORY_TEMPLATE, DEFAULT_ENABLE_FS_TUNING, DEFAULT_FILES_READ_ONLY, DEFAULT_INCLUDE_HIDDEN, DEFAULT_INDEX_PAGE, DEFAULT_MAX_AGE_SECONDS, DEFAULT_MAX_AVG_SERVE_TIME_NS, DEFAULT_MAX_CACHE_SIZE, DEFAULT_RANGE_SUPPORT, DEFAULT_ROOT_FILESYSTEM_ACCESS, DEFAULT_SEND_VARY_HEADER, DEFAULT_WEB_ROOT| Modifier and Type | Method and Description |
|---|---|
static io.vertx.ext.web.handler.StaticHandler |
create() |
static io.vertx.ext.web.handler.StaticHandler |
create(java.lang.String root) |
static io.vertx.ext.web.handler.StaticHandler |
create(java.lang.String root,
java.lang.ClassLoader classLoader) |
setAllowRootFileSystemAccess, setAlwaysAsyncFS, setCacheEntryTimeout, setCachingEnabled, setDefaultContentEncoding, setDirectoryListing, setDirectoryTemplate, setEnableFSTuning, setEnableRangeSupport, setFilesReadOnly, setHttp2PushMapping, setIncludeHidden, setIndexPage, setMaxAgeSeconds, setMaxAvgServeTimeNs, setMaxCacheSize, setSendVaryHeader, setWebRootstatic io.vertx.ext.web.handler.StaticHandler create()
create in interface io.vertx.ext.web.handler.StaticHandlerstatic io.vertx.ext.web.handler.StaticHandler create(java.lang.String root)
create in interface io.vertx.ext.web.handler.StaticHandlerstatic io.vertx.ext.web.handler.StaticHandler create(java.lang.String root,
java.lang.ClassLoader classLoader)
create in interface io.vertx.ext.web.handler.StaticHandlerCopyright © 2018. All Rights Reserved.