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_SECONDSThe 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(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 | 
| 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(Vertx vertx)
vertx - public static FaviconHandler create(Vertx vertx, String path)
vertx - path - the pathpublic static FaviconHandler create(Vertx vertx, String path, long maxAgeSeconds)
vertx - path - the pathmaxAgeSeconds - max how long the file will be cached by browser, in secondspublic static FaviconHandler create(Vertx vertx, long maxAgeSeconds)
vertx - maxAgeSeconds - max how long the file will be cached by browser, in secondspublic static FaviconHandler newInstance(FaviconHandler arg)
Copyright © 2022 Eclipse. All rights reserved.