Class JACCContextIdHandler

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

    public class JACCContextIdHandler
    extends Object
    implements io.undertow.server.HttpHandler

    A HttpHandler that sets the web application Jakarta Authorization contextId in the PolicyContext. Any previously registered contextId is suspended for the duration of the request and is restored when this handler is done.

    Author:
    Stefan Guilhen
    • Constructor Detail

      • JACCContextIdHandler

        public JACCContextIdHandler​(String contextId,
                                    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
      • wrapper

        public static io.undertow.server.HandlerWrapper wrapper​(String contextId)