Interface HttpHandlerFactory

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface HttpHandlerFactory
Factory used by UndertowServletWebServer to add HttpHandlers. Instances returned from this factory may optionally implement the following interfaces:
  • Closeable - if they wish to be closed just before server stops.
  • GracefulShutdownHandler - if they wish to manage graceful shutdown.
Since:
2.3.0
Author:
Phillip Webb
  • Method Summary

    Modifier and Type
    Method
    Description
    io.undertow.server.HttpHandler
    getHandler(io.undertow.server.HttpHandler next)
    Create the HttpHandler instance that should be added.
  • Method Details

    • getHandler

      io.undertow.server.HttpHandler getHandler(io.undertow.server.HttpHandler next)
      Create the HttpHandler instance that should be added.
      Parameters:
      next - the next handler in the chain
      Returns:
      the new HTTP handler instance