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.| Constructor and Description |
|---|
FaviconHandler(FaviconHandler 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
|
Object |
getDelegate() |
void |
handle(RoutingContext arg0)
Something has happened, so handle it.
|
static FaviconHandler |
newInstance(FaviconHandler arg) |
public FaviconHandler(FaviconHandler delegate)
public Object getDelegate()
public void handle(RoutingContext arg0)
Handlerhandle in interface Handler<RoutingContext>arg0 - 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 © 2015. All rights reserved.