Class QuarkusRequestWrapper

  • All Implemented Interfaces:
    io.vertx.core.http.HttpServerRequest, io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>, io.vertx.core.streams.StreamBase

    public class QuarkusRequestWrapper
    extends io.vertx.core.http.impl.HttpServerRequestWrapper
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String FAKE_COOKIE_NAME
      Huge hack, to work around the fact that there is no way to directly access this class once it is wrapped, we use a fake cookie
      • Fields inherited from class io.vertx.core.http.impl.HttpServerRequestWrapper

        delegate
      • Fields inherited from interface io.vertx.core.http.HttpServerRequest

        DEFAULT_INVALID_REQUEST_HANDLER
    • Constructor Summary

      Constructors 
      Constructor Description
      QuarkusRequestWrapper​(io.vertx.core.http.HttpServerRequest event, BiConsumer<io.vertx.core.http.Cookie,​io.vertx.core.http.HttpServerRequest> cookieConsumer)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addRequestDoneHandler​(io.vertx.core.Handler<Void> handler)  
      Set<io.vertx.core.http.Cookie> cookies​(String name)  
      (package private) void done()  
      io.vertx.core.http.HttpServerRequest exceptionHandler​(io.vertx.core.Handler<Throwable> handler)  
      static QuarkusRequestWrapper get​(io.vertx.core.http.HttpServerRequest request)  
      io.vertx.core.http.Cookie getCookie​(String name)  
      io.vertx.core.http.Cookie getCookie​(String name, String domain, String path)  
      io.vertx.core.http.HttpServerResponse response()  
      • Methods inherited from class io.vertx.core.http.impl.HttpServerRequestWrapper

        absoluteURI, body, body, bodyHandler, bytesRead, connection, context, cookieCount, cookieMap, cookies, customFrameHandler, decoderResult, end, end, endHandler, fetch, formAttributes, getFormAttribute, getHeader, getHeader, getParam, getParam, getParamsCharset, handler, headers, host, isEnded, isExpectMultipart, isSSL, localAddress, method, metric, params, path, pause, peerCertificateChain, pipe, pipeTo, pipeTo, query, remoteAddress, resume, routed, scheme, setExpectMultipart, setParamsCharset, sslSession, streamId, streamPriority, streamPriorityHandler, toNetSocket, toNetSocket, toWebSocket, toWebSocket, uploadHandler, uri, version
    • Field Detail

      • FAKE_COOKIE_NAME

        public static final String FAKE_COOKIE_NAME
        Huge hack, to work around the fact that there is no way to directly access this class once it is wrapped, we use a fake cookie
        See Also:
        Constant Field Values
    • Constructor Detail

      • QuarkusRequestWrapper

        public QuarkusRequestWrapper​(io.vertx.core.http.HttpServerRequest event,
                                     BiConsumer<io.vertx.core.http.Cookie,​io.vertx.core.http.HttpServerRequest> cookieConsumer)
    • Method Detail

      • addRequestDoneHandler

        public void addRequestDoneHandler​(io.vertx.core.Handler<Void> handler)
      • response

        public io.vertx.core.http.HttpServerResponse response()
        Specified by:
        response in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        response in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • done

        void done()
      • exceptionHandler

        public io.vertx.core.http.HttpServerRequest exceptionHandler​(io.vertx.core.Handler<Throwable> handler)
        Specified by:
        exceptionHandler in interface io.vertx.core.http.HttpServerRequest
        Specified by:
        exceptionHandler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
        Specified by:
        exceptionHandler in interface io.vertx.core.streams.StreamBase
        Overrides:
        exceptionHandler in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • getCookie

        public io.vertx.core.http.Cookie getCookie​(String name)
        Specified by:
        getCookie in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        getCookie in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • getCookie

        public io.vertx.core.http.Cookie getCookie​(String name,
                                                   String domain,
                                                   String path)
        Specified by:
        getCookie in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        getCookie in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • cookies

        public Set<io.vertx.core.http.Cookie> cookies​(String name)
        Specified by:
        cookies in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        cookies in class io.vertx.core.http.impl.HttpServerRequestWrapper