static StaticHandler |
StaticHandler.create() |
Create a handler using defaults
|
static StaticHandler |
StaticHandler.create(FileSystemAccess handlerVisibility,
String root) |
Create a handler, specifying web-root
and access option: absolute path or relative
|
static StaticHandler |
StaticHandler.create(String root) |
Create a handler, specifying web-root
|
StaticHandler |
StaticHandler.setAlwaysAsyncFS(boolean alwaysAsyncFS) |
Set whether async filesystem access should always be used
|
StaticHandler |
StaticHandler.setCacheEntryTimeout(long timeout) |
Set the server cache entry timeout when caching is enabled
|
StaticHandler |
StaticHandler.setCachingEnabled(boolean enabled) |
Set whether cache header handling is enabled
|
StaticHandler |
StaticHandler.setDefaultContentEncoding(String contentEncoding) |
Set the default content encoding for text related files.
|
StaticHandler |
StaticHandler.setDirectoryListing(boolean directoryListing) |
Set whether directory listing is enabled
|
StaticHandler |
StaticHandler.setDirectoryTemplate(String directoryTemplate) |
Set the directory template to be used when directory listing
|
StaticHandler |
StaticHandler.setEnableFSTuning(boolean enableFSTuning) |
Set whether async/sync filesystem tuning should enabled
|
StaticHandler |
StaticHandler.setEnableRangeSupport(boolean enableRangeSupport) |
Set whether range requests (resumable downloads; media streaming) should be
enabled.
|
StaticHandler |
StaticHandler.setFilesReadOnly(boolean readOnly) |
Set whether files are read-only and will never change
|
StaticHandler |
StaticHandler.setHttp2PushMapping(List<Http2PushMapping> http2PushMappings) |
Set the file mapping for http2push and link preload
|
StaticHandler |
StaticHandler.setIncludeHidden(boolean includeHidden) |
Set whether hidden files should be served
|
StaticHandler |
StaticHandler.setIndexPage(String indexPage) |
Set the index page
|
StaticHandler |
StaticHandler.setMaxAgeSeconds(long maxAgeSeconds) |
Set value for max age in caching headers
|
StaticHandler |
StaticHandler.setMaxAvgServeTimeNs(long maxAvgServeTimeNanoSeconds) |
Set the max serve time in ns, above which serves are considered slow
|
StaticHandler |
StaticHandler.setMaxCacheSize(int maxCacheSize) |
Set the max cache size, when caching is enabled
|
StaticHandler |
StaticHandler.setSendVaryHeader(boolean varyHeader) |
Set whether vary header should be sent with response.
|
StaticHandler |
StaticHandler.skipCompressionForMediaTypes(Set<String> mediaTypes) |
Skip compression if the media type of the file to send is in the provided
mediaTypes set.
|
StaticHandler |
StaticHandler.skipCompressionForSuffixes(Set<String> fileSuffixes) |
Skip compression if the suffix of the file to send is in the provided
fileSuffixes set.
|