@CompileStatic class FaviconHandler
A handler that serves favicons.
If no file system path is specified it will attempt to serve a resource called `favicon.ico` from the classpath.
| Constructor and description |
|---|
FaviconHandler
(Object delegate) |
| Type | Name and description |
|---|---|
static FaviconHandler |
create()Create a handler with defaults |
static FaviconHandler |
create(String path)Create a handler attempting to load favicon file from the specified path |
static FaviconHandler |
create(String path, long maxAgeSeconds)Create a handler attempting to load favicon file from the specified path, and with the specified max cache time |
static FaviconHandler |
create(long maxAgeSeconds)Create a handler with the specified max cache time |
Object |
getDelegate() |
void |
handle(RoutingContext arg0) |
Create a handler with defaults
Create a handler attempting to load favicon file from the specified path
path - the pathCreate a handler attempting to load favicon file from the specified path, and with the specified max cache time
path - the pathmaxAgeSeconds - max how long the file will be cached by browser, in secondsCreate a handler with the specified max cache time
maxAgeSeconds - max how long the file will be cached by browser, in secondsio.vertx:vertx-web:3.1.0