Class ServerErrorReadinessHandler

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

    public class ServerErrorReadinessHandler
    extends Object
    A filter to return 500 if the realm is not ready to handle authentication requests.
    Author:
    Kabir Khan
    • Constructor Detail

      • ServerErrorReadinessHandler

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

      • handleRequest

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