Class RequestWrapper

  • All Implemented Interfaces:
    io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>, io.vertx.ext.web.impl.OrderListener, Function<io.vertx.ext.web.RoutingContext,​Request>
    Direct Known Subclasses:
    WebSocketUpgradeRequestWrapper

    public class RequestWrapper
    extends Object
    implements Function<io.vertx.ext.web.RoutingContext,​Request>, io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>, io.vertx.ext.web.impl.OrderListener
    • Field Detail

      • wrapper

        protected Function<io.vertx.ext.web.RoutingContext,​Request> wrapper
    • Constructor Detail

      • RequestWrapper

        public RequestWrapper​(Controller ctr)
      • RequestWrapper

        public RequestWrapper​(Controller ctr,
                              Function<io.vertx.ext.web.RoutingContext,​Request> requestWrapper)
      • RequestWrapper

        public RequestWrapper​(io.vertx.core.Handler<? super Request> handler,
                              Function<io.vertx.ext.web.RoutingContext,​Request> requestWrapper)
      • RequestWrapper

        protected RequestWrapper​(Function<io.vertx.ext.web.RoutingContext,​Request> parent)
        Helper c'tor for extensions that want to provide their own handling
        Parameters:
        parent - Wrapping wrapper
    • Method Detail

      • apply

        public Request apply​(io.vertx.ext.web.RoutingContext r)
        Specified by:
        apply in interface Function<io.vertx.ext.web.RoutingContext,​Request>
      • handle

        public void handle​(io.vertx.ext.web.RoutingContext r)
        Specified by:
        handle in interface io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
      • onOrder

        public void onOrder​(int order)
        This method is only implemented to support root level Vert.x handler that rely on the onOrder() method to be called (e.g. OAuth2AuthHandler) to get that call, otherwise ordering for Irked controllers is handled by implicit field ordering in the java class source code file.
        Specified by:
        onOrder in interface io.vertx.ext.web.impl.OrderListener