A handler for serving static resources from the file system or classpath.

- `Anything`
  - `Object`
    - `Basic` ...and other supertypes
      - `StaticHandler`

- `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: `allowRootFileSystemAccess` whether root access is allowed
`setAlwaysAsyncFS` | `shared default StaticHandler setAlwaysAsyncFS(Boolean alwaysAsyncFS)` Set whether async filesystem access should always be used Parameters: `alwaysAsyncFS` true for always async FS access
`setCacheEntryTimeout` | `shared default StaticHandler setCacheEntryTimeout(Integer timeout)` Set the server cache entry timeout when caching is enabled Parameters: `timeout` the timeout, in ms
`setCachingEnabled` | `shared default StaticHandler setCachingEnabled(Boolean enabled)` Set whether cache header handling is enabled Parameters: `enabled` true if enabled
`setDirectoryListing` | `shared default StaticHandler setDirectoryListing(Boolean directoryListing)` Set whether directory listing is enabled Parameters: `directoryListing` true if enabled
`setDirectoryTemplate` | `shared default StaticHandler setDirectoryTemplate(String directoryTemplate)` Set the directory template to be used when directory listing Parameters: `directoryTemplate` the directory template
`setEnableFSTuning` | `shared default StaticHandler setEnableFSTuning(Boolean enableFSTuning)` Set whether async/sync filesystem tuning should enabled Parameters: `enableFSTuning` true to enabled FS tuning
`setEnableRangeSupport` | `shared default StaticHandler setEnableRangeSupport(Boolean enableRangeSupport)` Set whether range requests (resumable downloads; media streaming) should be enabled. Parameters: `enableRangeSupport` true to enable range support
`setFilesReadOnly` | `shared default StaticHandler setFilesReadOnly(Boolean readOnly)` Set whether files are read-only and will never change Parameters: `readOnly` whether files are read-only
`setIncludeHidden` | `shared default StaticHandler setIncludeHidden(Boolean includeHidden)` Set whether hidden files should be served Parameters: `includeHidden` true if hidden files should be served
`setIndexPage` | `shared default StaticHandler setIndexPage(String indexPage)` Set the index page Parameters: `indexPage` the index page
`setMaxAgeSeconds` | `shared default StaticHandler setMaxAgeSeconds(Integer maxAgeSeconds)` Set value for max age in caching headers Parameters: `maxAgeSeconds` maximum time for browser to cache, in seconds
`setMaxAvgServeTimeNs` | `shared default StaticHandler setMaxAvgServeTimeNs(Integer maxAvgServeTimeNanoSeconds)` Set the max serve time in ns, above which serves are considered slow Parameters: `maxAvgServeTimeNanoSeconds` max serve time, in ns
`setMaxCacheSize` | `shared default StaticHandler setMaxCacheSize(Integer maxCacheSize)` Set the max cache size, when caching is enabled Parameters: `maxCacheSize` the max cache size
`setWebRoot` | `shared default StaticHandler setWebRoot(String webRoot)` Set the web root Parameters: `webRoot` the web root

Inherited Methods
Methods inherited from: `Object` `equals`