Package io.vertx.mutiny.ext.web.handler
Class FaviconHandler
java.lang.Object
io.vertx.mutiny.ext.web.handler.FaviconHandler
- All Implemented Interfaces:
MutinyDelegate
,io.vertx.core.Handler<RoutingContext>
,PlatformHandler
,Consumer<RoutingContext>
public class FaviconHandler
extends Object
implements MutinyDelegate, PlatformHandler, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
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.
NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TypeArg<FaviconHandler>
static final long
The default max age in seconds as set in the cache-control header -
Constructor Summary
ConstructorsConstructorDescriptionFaviconHandler
(io.vertx.ext.web.handler.FaviconHandler delegate) FaviconHandler
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(RoutingContext item) static FaviconHandler
static FaviconHandler
static FaviconHandler
static FaviconHandler
boolean
io.vertx.ext.web.handler.FaviconHandler
void
handle
(RoutingContext arg0) int
hashCode()
static FaviconHandler
newInstance
(io.vertx.ext.web.handler.FaviconHandler arg) toString()
-
Field Details
-
__TYPE_ARG
-
DEFAULT_MAX_AGE_SECONDS
public static final long DEFAULT_MAX_AGE_SECONDSThe default max age in seconds as set in the cache-control header- See Also:
-
-
Constructor Details
-
FaviconHandler
public FaviconHandler(io.vertx.ext.web.handler.FaviconHandler delegate) -
FaviconHandler
-
-
Method Details
-
getDelegate
public io.vertx.ext.web.handler.FaviconHandler getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Specified by:
getDelegate
in interfacePlatformHandler
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
handle
- Specified by:
handle
in interfaceio.vertx.core.Handler<RoutingContext>
- Specified by:
handle
in interfacePlatformHandler
-
create
- Parameters:
vertx
-- Returns:
- the handler
-
create
- Parameters:
vertx
-path
- the path- Returns:
- the handler
-
create
- Parameters:
vertx
-path
- the pathmaxAgeSeconds
- max how long the file will be cached by browser, in seconds- Returns:
- the handler
-
create
- Parameters:
vertx
-maxAgeSeconds
- max how long the file will be cached by browser, in seconds- Returns:
- the handler
-
accept
- Specified by:
accept
in interfaceConsumer<RoutingContext>
- Specified by:
accept
in interfacePlatformHandler
-
newInstance
-