Class RedirectReadinessHandler

  • All Implemented Interfaces:
    io.undertow.server.HttpHandler

    public class RedirectReadinessHandler
    extends Object
    A readiness filter to redirect users to an error page if the realm is not ready to handle authentication requests.
    Author:
    Darran Lofthouse
    • Constructor Detail

      • RedirectReadinessHandler

        public RedirectReadinessHandler​(Function<io.undertow.server.HttpServerExchange,​Boolean> readyFunction,
                                        io.undertow.server.HttpHandler next,
                                        String redirectTo)
    • Method Detail

      • handleRequest

        public void handleRequest​(io.undertow.server.HttpServerExchange exchange)
                           throws Exception
        Specified by:
        handleRequest in interface io.undertow.server.HttpHandler
        Throws:
        Exception