Class AdvisedDispatchHandler

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

    public class AdvisedDispatchHandler
    extends java.lang.Object
    implements io.undertow.server.HttpHandler
    TODO JavaDoc
    • Constructor Summary

      Constructors 
      Constructor Description
      AdvisedDispatchHandler​(io.undertow.server.HttpHandler next, java.util.function.Supplier<? extends ch.raffael.meldioc.util.advice.AroundAdvice> advice)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.concurrent.Executor advise​(io.undertow.server.HttpServerExchange exchange, java.util.concurrent.Executor executor)  
      void handleRequest​(io.undertow.server.HttpServerExchange exchange)  
      static io.undertow.server.HttpHandler prepend​(io.undertow.server.HttpHandler next, io.vavr.control.Option<? extends java.util.function.Supplier<? extends ch.raffael.meldioc.util.advice.AroundAdvice>> advice)  
      static io.undertow.server.HttpHandler prepend​(io.undertow.server.HttpHandler next, java.util.function.Supplier<? extends ch.raffael.meldioc.util.advice.AroundAdvice> advice)  
      static java.util.concurrent.Executor standardExecutor​(io.undertow.server.HttpServerExchange exchange)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AdvisedDispatchHandler

        public AdvisedDispatchHandler​(io.undertow.server.HttpHandler next,
                                      java.util.function.Supplier<? extends ch.raffael.meldioc.util.advice.AroundAdvice> advice)
    • Method Detail

      • prepend

        public static io.undertow.server.HttpHandler prepend​(io.undertow.server.HttpHandler next,
                                                             java.util.function.Supplier<? extends ch.raffael.meldioc.util.advice.AroundAdvice> advice)
      • prepend

        public static io.undertow.server.HttpHandler prepend​(io.undertow.server.HttpHandler next,
                                                             io.vavr.control.Option<? extends java.util.function.Supplier<? extends ch.raffael.meldioc.util.advice.AroundAdvice>> advice)
      • handleRequest

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

        public static java.util.concurrent.Executor standardExecutor​(io.undertow.server.HttpServerExchange exchange)
      • advise

        public static java.util.concurrent.Executor advise​(io.undertow.server.HttpServerExchange exchange,
                                                           java.util.concurrent.Executor executor)