@groovy.transform.ToString(excludes: [delegate]) class StaticHandlerOptions extends java.lang.Object implements java.util.function.Consumer<io.vertx.ext.web.handler.StaticHandler>
Author: Kevin Sheppard Date: April 01, 2023
Type | Name and description |
---|---|
java.lang.String |
dir The directory to serve (relative to CWD) |
Constructor and description |
---|
StaticHandlerOptions() |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
accept(io.vertx.ext.web.handler.StaticHandler staticHandler) |
|
static StaticHandlerOptions |
create(java.lang.String dir, Env env) |
|
io.vertx.ext.web.handler.StaticHandler |
getDelegate() |
|
static long |
parseDurationExpression(java.lang.String expression) Parses a duration expression and returns a long value representing the duration in seconds. |
|
void |
setCachingEnabled(java.lang.Boolean cachingEnabled) |
|
void |
setEnableDirectoryListing(java.lang.Boolean enableDirectoryListing) |
|
void |
setMaxAge(java.lang.String durationExpression) Set the Max-Age header value using a duration expression in the form |
|
void |
setMaxCacheSize(int maxCacheSize) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Parses a duration expression and returns a long value representing the duration in seconds.
expression
- A duration expression. Set the Max-Age header value using a duration expression in the form
durationExpression
- A duration expression.
Groovy Documentation