A handler for serving static resources from the file system or classpath.
Anything
Object
StaticHandler
Basic
Identifiable
Object
Anything
no subtypes hierarchy
Initializer |
StaticHandler(StaticHandler unknown) |
Inherited Attributes |
Attributes inherited from: Object hash , string |
Methods | |
handle | shared default void handle(RoutingContext arg0) |
setAllowRootFileSystemAccess | shared default StaticHandler setAllowRootFileSystemAccess(Boolean allowRootFileSystemAccess) Enable/Disable access to the root of the filesystem Parameters:
|
setAlwaysAsyncFS | shared default StaticHandler setAlwaysAsyncFS(Boolean alwaysAsyncFS) Set whether async filesystem access should always be used Parameters:
|
setCacheEntryTimeout | shared default StaticHandler setCacheEntryTimeout(Integer timeout) Set the server cache entry timeout when caching is enabled Parameters:
|
setCachingEnabled | shared default StaticHandler setCachingEnabled(Boolean enabled) Set whether cache header handling is enabled Parameters:
|
setDirectoryListing | shared default StaticHandler setDirectoryListing(Boolean directoryListing) Set whether directory listing is enabled Parameters:
|
setDirectoryTemplate | shared default StaticHandler setDirectoryTemplate(String directoryTemplate) Set the directory template to be used when directory listing Parameters:
|
setEnableFSTuning | shared default StaticHandler setEnableFSTuning(Boolean enableFSTuning) Set whether async/sync filesystem tuning should enabled Parameters:
|
setEnableRangeSupport | shared default StaticHandler setEnableRangeSupport(Boolean enableRangeSupport) Set whether range requests (resumable downloads; media streaming) should be enabled. Parameters:
|
setFilesReadOnly | shared default StaticHandler setFilesReadOnly(Boolean readOnly) Set whether files are read-only and will never change Parameters:
|
setIncludeHidden | shared default StaticHandler setIncludeHidden(Boolean includeHidden) Set whether hidden files should be served Parameters:
|
setIndexPage | shared default StaticHandler setIndexPage(String indexPage) Set the index page Parameters:
|
setMaxAgeSeconds | shared default StaticHandler setMaxAgeSeconds(Integer maxAgeSeconds) Set value for max age in caching headers Parameters:
|
setMaxAvgServeTimeNs | shared default StaticHandler setMaxAvgServeTimeNs(Integer maxAvgServeTimeNanoSeconds) Set the max serve time in ns, above which serves are considered slow Parameters:
|
setMaxCacheSize | shared default StaticHandler setMaxCacheSize(Integer maxCacheSize) Set the max cache size, when caching is enabled Parameters:
|
setWebRoot | shared default StaticHandler setWebRoot(String webRoot) Set the web root Parameters:
|
Inherited Methods |
Methods inherited from: Object equals |