Class ActionHandler<C,​B,​R>

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

    public class ActionHandler<C,​B,​R>
    extends java.lang.Object
    implements io.undertow.server.HttpHandler
    Handler for actions written in the routing DSL.
    • Constructor Detail

      • ActionHandler

        public ActionHandler​(HttpDecoder<? super C,​? extends B> decoder,
                             HttpEncoder<? super C,​? super R> encoder,
                             java.util.function.Function<? super io.undertow.server.HttpServerExchange,​? extends C> context,
                             ActionHandler.Invoker<C,​B,​R> invoker)
      • ActionHandler

        public ActionHandler​(HttpDecoder<? super C,​? extends B> decoder,
                             HttpEncoder<? super C,​? super R> encoder,
                             java.util.function.Function<? super io.undertow.server.HttpServerExchange,​? extends C> context,
                             ActionHandler.Invoker<C,​B,​R> invoker,
                             boolean dispatch)
    • Method Detail

      • 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