java.lang.Object
io.vertx.mutiny.ext.web.handler.FaviconHandler
- All Implemented Interfaces:
io.smallrye.mutiny.vertx.MutinyDelegate,io.vertx.core.Handler<RoutingContext>,PlatformHandler,Consumer<RoutingContext>
public class FaviconHandler
extends Object
implements io.smallrye.mutiny.vertx.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 io.smallrye.mutiny.vertx.TypeArg<FaviconHandler> static final longThe 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 TypeMethodDescriptionvoidaccept(RoutingContext item) static FaviconHandlercreate(io.vertx.mutiny.core.Vertx vertx) static FaviconHandlercreate(io.vertx.mutiny.core.Vertx vertx, long maxAgeSeconds) static FaviconHandlerstatic FaviconHandlerbooleanio.vertx.ext.web.handler.FaviconHandlervoidhandle(RoutingContext arg0) inthashCode()static FaviconHandlernewInstance(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:
getDelegatein interfaceio.smallrye.mutiny.vertx.MutinyDelegate- Specified by:
getDelegatein interfacePlatformHandler
-
toString
-
equals
-
hashCode
public int hashCode() -
handle
- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>- Specified by:
handlein interfacePlatformHandler
-
create
- Parameters:
vertx-- Returns:
- the handler
-
create
- Parameters:
vertx-path- the path- Returns:
- the handler
-
create
public static FaviconHandler create(io.vertx.mutiny.core.Vertx vertx, String path, long maxAgeSeconds) - 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:
acceptin interfaceConsumer<RoutingContext>- Specified by:
acceptin interfacePlatformHandler
-
newInstance
-