Class QuarkusRequestWrapper
- java.lang.Object
-
- io.quarkus.vertx.http.runtime.AbstractRequestWrapper
-
- io.quarkus.vertx.http.runtime.filters.QuarkusRequestWrapper
-
- All Implemented Interfaces:
io.vertx.core.http.HttpServerRequest,io.vertx.core.http.impl.HttpServerRequestInternal,io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>,io.vertx.core.streams.StreamBase
public class QuarkusRequestWrapper extends AbstractRequestWrapper
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classQuarkusRequestWrapper.QuarkusCookie(package private) classQuarkusRequestWrapper.ResponseWrapper
-
Field Summary
Fields Modifier and Type Field Description static StringFAKE_COOKIE_NAMEHuge 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.quarkus.vertx.http.runtime.AbstractRequestWrapper
delegate
-
-
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 voidaddRequestDoneHandler(io.vertx.core.Handler<Void> handler)(package private) voiddone()io.vertx.core.http.HttpServerRequestexceptionHandler(io.vertx.core.Handler<Throwable> handler)static QuarkusRequestWrapperget(io.vertx.core.http.HttpServerRequest request)io.vertx.core.http.CookiegetCookie(String name)io.vertx.core.http.HttpServerResponseresponse()-
Methods inherited from class io.quarkus.vertx.http.runtime.AbstractRequestWrapper
absoluteURI, body, body, bodyHandler, bytesRead, connection, context, cookieCount, cookieMap, customFrameHandler, end, end, endHandler, fetch, formAttributes, getFormAttribute, getHeader, getHeader, getParam, handler, headers, host, isEnded, isExpectMultipart, isSSL, localAddress, method, metric, params, path, pause, peerCertificateChain, query, remoteAddress, resume, routed, scheme, setExpectMultipart, sslSession, 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
-
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:
responsein interfaceio.vertx.core.http.HttpServerRequest- Overrides:
responsein classAbstractRequestWrapper
-
done
void done()
-
exceptionHandler
public io.vertx.core.http.HttpServerRequest exceptionHandler(io.vertx.core.Handler<Throwable> handler)
- Specified by:
exceptionHandlerin interfaceio.vertx.core.http.HttpServerRequest- Specified by:
exceptionHandlerin interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>- Specified by:
exceptionHandlerin interfaceio.vertx.core.streams.StreamBase- Overrides:
exceptionHandlerin classAbstractRequestWrapper
-
getCookie
public io.vertx.core.http.Cookie getCookie(String name)
- Specified by:
getCookiein interfaceio.vertx.core.http.HttpServerRequest- Overrides:
getCookiein classAbstractRequestWrapper
-
-