Interface FaviconHandler
- All Superinterfaces:
Handler<RoutingContext>, PlatformHandler
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.
- Author:
- Tim Fox
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longThe default max age in seconds as set in the cache-control header -
Method Summary
Static MethodsModifier 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 time
-
Field Details
-
DEFAULT_MAX_AGE_SECONDS
static final long DEFAULT_MAX_AGE_SECONDSThe default max age in seconds as set in the cache-control header- See Also:
-
-
Method Details
-
create
-
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
-