Class AdvisedDispatchHandler

java.lang.Object
ch.raffael.meldioc.library.http.server.undertow.handler.AdvisedDispatchHandler
All Implemented Interfaces:
io.undertow.server.HttpHandler

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

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

    Modifier and Type
    Method
    Description
    static Executor
    advise(io.undertow.server.HttpServerExchange exchange, 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 Supplier<? extends ch.raffael.meldioc.util.advice.AroundAdvice>> advice)
     
    static io.undertow.server.HttpHandler
    prepend(io.undertow.server.HttpHandler next, Supplier<? extends ch.raffael.meldioc.util.advice.AroundAdvice> advice)
     
    static 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 Details

    • AdvisedDispatchHandler

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

    • prepend

      public static io.undertow.server.HttpHandler prepend(io.undertow.server.HttpHandler next, 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 Supplier<? extends ch.raffael.meldioc.util.advice.AroundAdvice>> advice)
    • handleRequest

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

      public static Executor standardExecutor(io.undertow.server.HttpServerExchange exchange)
    • advise

      public static Executor advise(io.undertow.server.HttpServerExchange exchange, Executor executor)