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 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 FaviconHandlerstatic FaviconHandlerstatic 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 interfaceMutinyDelegate- Specified by:
getDelegatein interfacePlatformHandler- Returns:
- the delegate used by this Mutiny object of generated type
-
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
- 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
-