Class DmrFailureReadinessHandler

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

    public class DmrFailureReadinessHandler
    extends Object
    A RealmReadinessFilter implementation to report by DMR failure that requests can not be processed as the realm is not ready.
    Author:
    Darran Lofthouse
    • Constructor Detail

      • DmrFailureReadinessHandler

        public DmrFailureReadinessHandler​(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