public class FaviconHandler extends Object implements Handler<RoutingContext>
If no file system path is specified it will attempt to serve a resource called `favicon.ico` from the classpath.
NOTE: This class has been automatically generated from theoriginal
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<FaviconHandler> |
__TYPE_ARG |
static long |
DEFAULT_MAX_AGE_SECONDS
The default max age in seconds as set in the cache-control header
|
Constructor and Description |
---|
FaviconHandler(FaviconHandler delegate) |
FaviconHandler(Object delegate) |
Modifier and Type | Method and Description |
---|---|
static FaviconHandler |
create()
Create a handler with defaults
|
static FaviconHandler |
create(long maxAgeSeconds)
Create a handler with the specified max cache time
|
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
|
boolean |
equals(Object o) |
FaviconHandler |
getDelegate() |
void |
handle(RoutingContext event)
Something has happened, so handle it.
|
int |
hashCode() |
static FaviconHandler |
newInstance(FaviconHandler arg) |
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<FaviconHandler> __TYPE_ARG
public static final long DEFAULT_MAX_AGE_SECONDS
public FaviconHandler(FaviconHandler delegate)
public FaviconHandler(Object delegate)
public FaviconHandler getDelegate()
public void handle(RoutingContext event)
handle
in interface Handler<RoutingContext>
event
- the event to handlepublic static FaviconHandler create()
public static FaviconHandler create(String path)
path
- the pathpublic static FaviconHandler create(String path, long maxAgeSeconds)
path
- the pathmaxAgeSeconds
- max how long the file will be cached by browser, in secondspublic static FaviconHandler create(long maxAgeSeconds)
maxAgeSeconds
- max how long the file will be cached by browser, in secondspublic static FaviconHandler newInstance(FaviconHandler arg)
Copyright © 2023 Eclipse. All rights reserved.