open class StaticHandler : Handler<RoutingContext>
A handler for serving static resources from the file system or classpath. NOTE: This class has been automatically generated from the io.vertx.ext.web.handler.StaticHandler non RX-ified interface using Vert.x codegen.
StaticHandler(delegate: StaticHandler) |
static val __TYPE_ARG: TypeArg<StaticHandler> |
open static fun create(): StaticHandler
Create a handler using defaults open static fun create(root: String): StaticHandler
Create a handler, specifying web-root |
|
open fun equals(other: Any?): Boolean |
|
open fun getDelegate(): StaticHandler |
|
open fun handle(arg0: RoutingContext): Unit |
|
open fun hashCode(): Int |
|
open static fun newInstance(arg: StaticHandler): StaticHandler |
|
open fun setAllowRootFileSystemAccess(allowRootFileSystemAccess: Boolean): StaticHandler
Enable/Disable access to the root of the filesystem |
|
open fun setAlwaysAsyncFS(alwaysAsyncFS: Boolean): StaticHandler
Set whether async filesystem access should always be used |
|
open fun setCacheEntryTimeout(timeout: Long): StaticHandler
Set the server cache entry timeout when caching is enabled |
|
open fun setCachingEnabled(enabled: Boolean): StaticHandler
Set whether cache header handling is enabled |
|
open fun setDefaultContentEncoding(contentEncoding: String): StaticHandler
Set the default content encoding for text related files. This allows overriding the system settings default value. |
|
open fun setDirectoryListing(directoryListing: Boolean): StaticHandler
Set whether directory listing is enabled |
|
open fun setDirectoryTemplate(directoryTemplate: String): StaticHandler
Set the directory template to be used when directory listing |
|
open fun setEnableFSTuning(enableFSTuning: Boolean): StaticHandler
Set whether async/sync filesystem tuning should enabled |
|
open fun setEnableRangeSupport(enableRangeSupport: Boolean): StaticHandler
Set whether range requests (resumable downloads; media streaming) should be enabled. |
|
open fun setFilesReadOnly(readOnly: Boolean): StaticHandler
Set whether files are read-only and will never change |
|
open fun setIncludeHidden(includeHidden: Boolean): StaticHandler
Set whether hidden files should be served |
|
open fun setIndexPage(indexPage: String): StaticHandler
Set the index page |
|
open fun setMaxAgeSeconds(maxAgeSeconds: Long): StaticHandler
Set value for max age in caching headers |
|
open fun setMaxAvgServeTimeNs(maxAvgServeTimeNanoSeconds: Long): StaticHandler
Set the max serve time in ns, above which serves are considered slow |
|
open fun setMaxCacheSize(maxCacheSize: Int): StaticHandler
Set the max cache size, when caching is enabled |
|
open fun setSendVaryHeader(varyHeader: Boolean): StaticHandler
Set whether vary header should be sent with response. |
|
open fun setWebRoot(webRoot: String): StaticHandler
Set the web root |
|
open fun toString(): String |