Class FaviconHandler
java.lang.Object
io.vertx.rxjava3.ext.web.handler.FaviconHandler
- All Implemented Interfaces:
Handler<RoutingContext>, io.vertx.lang.rx.RxDelegate, PlatformHandler
public class FaviconHandler
extends Object
implements io.vertx.lang.rx.RxDelegate, PlatformHandler, Handler<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 the original non RX-ified interface using Vert.x codegen.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.vertx.lang.rx.TypeArg<FaviconHandler> static final longThe default max age in seconds as set in the cache-control header -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 timebooleanvoidhandle(RoutingContext event) Something has happened, so handle it.inthashCode()static FaviconHandlertoString()
-
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
-
FaviconHandler
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfacePlatformHandler- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
handle
Something has happened, so handle it.- Specified by:
handlein interfaceHandler<RoutingContext>- Specified by:
handlein interfacePlatformHandler- Parameters:
event- the event to handle
-
create
Create a handler with defaults- Parameters:
vertx-- Returns:
- the handler
-
create
Create a handler attempting to load favicon file from the specified path- Parameters:
vertx-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:
vertx-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:
vertx-maxAgeSeconds- max how long the file will be cached by browser, in seconds- Returns:
- the handler
-
newInstance
-