public interface FaviconHandler extends PlatformHandler
If no file system path is specified it will attempt to serve a resource called `favicon.ico` from the classpath.
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_MAX_AGE_SECONDS
The default max age in seconds as set in the cache-control header
|
Modifier and Type | Method and Description |
---|---|
static FaviconHandler |
create(Vertx vertx)
Create a handler with defaults
|
static FaviconHandler |
create(Vertx vertx,
long maxAgeSeconds)
Create a handler with the specified max cache time
|
static FaviconHandler |
create(Vertx vertx,
String path)
Create a handler attempting to load favicon file from the specified path
|
static FaviconHandler |
create(Vertx vertx,
String path,
long maxAgeSeconds)
Create a handler attempting to load favicon file from the specified path, and with the specified max cache time
|
static final long DEFAULT_MAX_AGE_SECONDS
static FaviconHandler create(Vertx vertx)
static FaviconHandler create(Vertx vertx, String path)
path
- the pathstatic FaviconHandler create(Vertx vertx, String path, long maxAgeSeconds)
path
- the pathmaxAgeSeconds
- max how long the file will be cached by browser, in secondsstatic FaviconHandler create(Vertx vertx, long maxAgeSeconds)
maxAgeSeconds
- max how long the file will be cached by browser, in secondsCopyright © 2023 Eclipse. All rights reserved.