Package io.vertx.mutiny.ext.web.handler
Class FaviconHandler
- java.lang.Object
-
- io.vertx.mutiny.ext.web.handler.FaviconHandler
-
- All Implemented Interfaces:
io.vertx.core.Handler<RoutingContext>,PlatformHandler,Consumer<RoutingContext>
public class FaviconHandler extends Object implements 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 theoriginalnon Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<FaviconHandler>__TYPE_ARGstatic longDEFAULT_MAX_AGE_SECONDSThe default max age in seconds as set in the cache-control header
-
Constructor Summary
Constructors Constructor Description FaviconHandler(io.vertx.ext.web.handler.FaviconHandler delegate)FaviconHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(RoutingContext item)static FaviconHandlercreate(Vertx vertx)static FaviconHandlercreate(Vertx vertx, long maxAgeSeconds)static FaviconHandlercreate(Vertx vertx, String path)static FaviconHandlercreate(Vertx vertx, String path, long maxAgeSeconds)booleanequals(Object o)io.vertx.ext.web.handler.FaviconHandlergetDelegate()voidhandle(RoutingContext arg0)inthashCode()static FaviconHandlernewInstance(io.vertx.ext.web.handler.FaviconHandler arg)StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<FaviconHandler> __TYPE_ARG
-
DEFAULT_MAX_AGE_SECONDS
public static final long DEFAULT_MAX_AGE_SECONDS
The default max age in seconds as set in the cache-control header- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FaviconHandler
public FaviconHandler(io.vertx.ext.web.handler.FaviconHandler delegate)
-
FaviconHandler
public FaviconHandler(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.handler.FaviconHandler getDelegate()
- Specified by:
getDelegatein interfacePlatformHandler
-
handle
public void handle(RoutingContext arg0)
- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>- Specified by:
handlein interfacePlatformHandler
-
create
public static FaviconHandler create(Vertx vertx)
- Parameters:
vertx-- Returns:
- the handler
-
create
public static FaviconHandler create(Vertx vertx, String path)
- Parameters:
vertx-path- the path- Returns:
- the handler
-
create
public static FaviconHandler create(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
public static FaviconHandler create(Vertx vertx, long maxAgeSeconds)
- Parameters:
vertx-maxAgeSeconds- max how long the file will be cached by browser, in seconds- Returns:
- the handler
-
accept
public void accept(RoutingContext item)
- Specified by:
acceptin interfaceConsumer<RoutingContext>- Specified by:
acceptin interfacePlatformHandler
-
newInstance
public static FaviconHandler newInstance(io.vertx.ext.web.handler.FaviconHandler arg)
-
-