Class QuarkusRequestWrapper

java.lang.Object
io.vertx.core.http.impl.HttpServerRequestInternal
io.vertx.core.http.impl.HttpServerRequestWrapper
io.quarkus.vertx.http.runtime.filters.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
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
     
    (package private) class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    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

    Modifier and Type
    Method
    Description
    void
    addRequestDoneHandler(io.vertx.core.Handler<Void> handler)
     
    Set<io.vertx.core.http.Cookie>
     
    (package private) void
     
    io.vertx.core.http.HttpServerRequest
    exceptionHandler(io.vertx.core.Handler<Throwable> handler)
     
    get(io.vertx.core.http.HttpServerRequest request)
     
    io.vertx.core.http.Cookie
     
    io.vertx.core.http.Cookie
    getCookie(String name, String domain, String path)
     
    io.vertx.core.http.HttpServerResponse
     

    Methods inherited from class io.vertx.core.http.impl.HttpServerRequestWrapper

    absoluteURI, authority, body, bytesRead, connection, context, cookies, customFrameHandler, decoderResult, end, endHandler, fetch, formAttributes, getFormAttribute, getParamsCharset, handler, headers, host, isEnded, isExpectMultipart, method, metric, params, path, pause, peerCertificateChain, query, resume, routed, scheme, setExpectMultipart, setParamsCharset, streamId, streamPriority, streamPriorityHandler, toNetSocket, toWebSocket, uploadHandler, uri, version

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.vertx.core.http.HttpServerRequest

    body, bodyHandler, cookieCount, cookieMap, end, getHeader, getHeader, getParam, getParam, isSSL, localAddress, remoteAddress, sslSession, toNetSocket, toWebSocket

    Methods inherited from interface io.vertx.core.streams.ReadStream

    pipe, pipeTo, pipeTo
  • Field Details

  • Constructor Details

    • QuarkusRequestWrapper

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

    • get

      public static QuarkusRequestWrapper get(io.vertx.core.http.HttpServerRequest request)
    • 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