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 io.vertx.core.Handler<RoutingContext>, PlatformHandler, Consumer<RoutingContext>, MutinyDelegate
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 the original non Mutiny-ified interface.
- Author:
- Tim Fox
- See Also:
-
FaviconHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.ext.web.handler.PlatformHandler
PlatformHandler.PlatformHandlerImpl -
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) Create a new instance ofFaviconHandlerdelegating to the given (non-null) instance ofFaviconHandler.FaviconHandler(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(RoutingContext item) Handle an item.static FaviconHandlerCreate a handler with defaultsstatic FaviconHandlerCreate a handler with the specified max cache timestatic FaviconHandlerCreate a handler attempting to load favicon file from the specified pathstatic FaviconHandlerCreate a handler attempting to load favicon file from the specified path, and with the specified max cache timebooleanio.vertx.ext.web.handler.FaviconHandlerGet the delegate instance.voidhandle(RoutingContext item) Handle an item.inthashCode()static FaviconHandlernewInstance(io.vertx.ext.web.handler.FaviconHandler delegate) Creates a new instance of theFaviconHandler.toString()
-
Field Details
-
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:
-
__TYPE_ARG
-
-
Constructor Details
-
FaviconHandler
public FaviconHandler(io.vertx.ext.web.handler.FaviconHandler delegate) Create a new instance ofFaviconHandlerdelegating to the given (non-null) instance ofFaviconHandler. -
FaviconHandler
-
-
Method Details
-
accept
Handle an item. This method is generated from theoriginalmethod."- Specified by:
acceptin interfaceConsumer<RoutingContext>- Specified by:
acceptin interfacePlatformHandler
-
handle
Handle an item. This method is generated from theoriginalmethod."- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>- Specified by:
handlein interfacePlatformHandler
-
getDelegate
public io.vertx.ext.web.handler.FaviconHandler getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Specified by:
getDelegatein interfacePlatformHandler- Returns:
- the delegate instance
-
create
Create a handler with defaults- Returns:
- the handler
-
create
Create a handler attempting to load favicon file from the specified path- Parameters:
path- the path- Returns:
- the handler
-
create
Create a handler attempting to load favicon file from the specified path, and with the specified max cache time- Parameters:
path- the pathmaxAgeSeconds- max how long the file will be cached by browser, in seconds- Returns:
- the handler
-
create
Create a handler with the specified max cache time- Parameters:
maxAgeSeconds- max how long the file will be cached by browser, in seconds- Returns:
- the handler
-
newInstance
Creates a new instance of theFaviconHandler. -
hashCode
public int hashCode() -
equals
-
toString
-