Class FaviconHandler

java.lang.Object
io.vertx.mutiny.ext.web.handler.FaviconHandler
All Implemented Interfaces:
io.smallrye.mutiny.vertx.MutinyDelegate, io.vertx.core.Handler<RoutingContext>, PlatformHandler, Consumer<RoutingContext>

public class FaviconHandler extends Object implements io.smallrye.mutiny.vertx.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 the original non Mutiny-ified interface using Vert.x codegen.

  • Field Details

    • __TYPE_ARG

      public static final io.smallrye.mutiny.vertx.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:
  • Constructor Details

    • FaviconHandler

      public FaviconHandler(io.vertx.ext.web.handler.FaviconHandler delegate)
    • FaviconHandler

      public FaviconHandler(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.web.handler.FaviconHandler getDelegate()
      Specified by:
      getDelegate in interface io.smallrye.mutiny.vertx.MutinyDelegate
      Specified by:
      getDelegate in interface PlatformHandler
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • handle

      public void handle(RoutingContext arg0)
      Specified by:
      handle in interface io.vertx.core.Handler<RoutingContext>
      Specified by:
      handle in interface PlatformHandler
    • create

      public static FaviconHandler create(io.vertx.mutiny.core.Vertx vertx)
      Parameters:
      vertx -
      Returns:
      the handler
    • create

      public static FaviconHandler create(io.vertx.mutiny.core.Vertx vertx, String path)
      Parameters:
      vertx -
      path - the path
      Returns:
      the handler
    • create

      public static FaviconHandler create(io.vertx.mutiny.core.Vertx vertx, String path, long maxAgeSeconds)
      Parameters:
      vertx -
      path - the path
      maxAgeSeconds - max how long the file will be cached by browser, in seconds
      Returns:
      the handler
    • create

      public static FaviconHandler create(io.vertx.mutiny.core.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:
      accept in interface Consumer<RoutingContext>
      Specified by:
      accept in interface PlatformHandler
    • newInstance

      public static FaviconHandler newInstance(io.vertx.ext.web.handler.FaviconHandler arg)