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 class
QuarkusRequestWrapper.QuarkusCookie
(package private) class
QuarkusRequestWrapper.ResponseWrapper
-
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.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 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.quarkus.vertx.http.runtime.AbstractRequestWrapper
absoluteURI, body, body, bodyHandler, bytesRead, connection, context, cookieCount, cookieMap, cookies, customFrameHandler, decoderResult, end, end, endHandler, fetch, formAttributes, getFormAttribute, getHeader, getHeader, getParam, getParam, handler, headers, host, isEnded, isExpectMultipart, isSSL, localAddress, method, metric, params, path, pause, peerCertificateChain, query, remoteAddress, resume, routed, scheme, setExpectMultipart, 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
-
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 interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
response
in classAbstractRequestWrapper
-
done
void done()
-
exceptionHandler
public io.vertx.core.http.HttpServerRequest exceptionHandler(io.vertx.core.Handler<Throwable> handler)
- Specified by:
exceptionHandler
in interfaceio.vertx.core.http.HttpServerRequest
- Specified by:
exceptionHandler
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
- Specified by:
exceptionHandler
in interfaceio.vertx.core.streams.StreamBase
- Overrides:
exceptionHandler
in classAbstractRequestWrapper
-
getCookie
public io.vertx.core.http.Cookie getCookie(String name)
- Specified by:
getCookie
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
getCookie
in classAbstractRequestWrapper
-
getCookie
public io.vertx.core.http.Cookie getCookie(String name, String domain, String path)
- Specified by:
getCookie
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
getCookie
in classAbstractRequestWrapper
-
cookies
public Set<io.vertx.core.http.Cookie> cookies(String name)
- Specified by:
cookies
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
cookies
in classAbstractRequestWrapper
-
-