Package io.quarkus.vertx.http.runtime
Class ForwardedServerRequestWrapper
java.lang.Object
io.vertx.core.http.impl.HttpServerRequestInternal
io.vertx.core.http.impl.HttpServerRequestWrapper
io.quarkus.vertx.http.runtime.ForwardedServerRequestWrapper
- 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 ForwardedServerRequestWrapper
extends io.vertx.core.http.impl.HttpServerRequestWrapper
implements io.vertx.core.http.HttpServerRequest
-
Field Summary
Fields inherited from class io.vertx.core.http.impl.HttpServerRequestWrapper
delegateFields inherited from interface io.vertx.core.http.HttpServerRequest
DEFAULT_INVALID_REQUEST_HANDLER -
Constructor Summary
ConstructorsConstructorDescriptionForwardedServerRequestWrapper(io.vertx.core.http.HttpServerRequest request, ForwardingProxyOptions forwardingProxyOptions, TrustedProxyCheck trustedProxyCheck) -
Method Summary
Modifier and TypeMethodDescriptionio.vertx.core.net.HostAndPortio.vertx.core.Future<io.vertx.core.buffer.Buffer>body()io.vertx.core.http.HttpServerRequestbody(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.buffer.Buffer>> handler) io.vertx.core.http.HttpServerRequestbodyHandler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler) long(package private) voidio.vertx.core.http.HttpConnectionio.vertx.core.Contextcontext()intDeprecated.Set<io.vertx.core.http.Cookie>cookies()Set<io.vertx.core.http.Cookie>io.vertx.core.http.HttpServerRequestcustomFrameHandler(io.vertx.core.Handler<io.vertx.core.http.HttpFrame> handler) io.netty.handler.codec.DecoderResultio.vertx.core.Future<Void>end()voidio.vertx.core.http.HttpServerRequestendHandler(io.vertx.core.Handler<Void> handler) io.vertx.core.http.HttpServerRequestexceptionHandler(io.vertx.core.Handler<Throwable> handler) io.vertx.core.http.HttpServerRequestfetch(long amount) io.vertx.core.MultiMapio.vertx.core.http.Cookieio.vertx.core.http.CookiegetHeader(CharSequence charSequence) io.vertx.core.http.HttpServerRequesthandler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler) io.vertx.core.MultiMapheaders()host()booleanisEnded()booleanbooleanisSSL()io.vertx.core.net.SocketAddressio.vertx.core.http.HttpMethodmethod()metric()io.vertx.core.MultiMapparams()path()io.vertx.core.http.HttpServerRequestpause()Deprecated.query()io.vertx.core.net.SocketAddressio.vertx.core.http.HttpServerResponseresponse()io.vertx.core.http.HttpServerRequestresume()scheme()io.vertx.core.http.HttpServerRequestsetExpectMultipart(boolean b) io.vertx.core.http.HttpServerRequestsetParamsCharset(String charset) io.vertx.core.http.StreamPriorityio.vertx.core.http.HttpServerRequeststreamPriorityHandler(io.vertx.core.Handler<io.vertx.core.http.StreamPriority> handler) io.vertx.core.Future<io.vertx.core.net.NetSocket>voidtoNetSocket(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.net.NetSocket>> handler) io.vertx.core.Future<io.vertx.core.http.ServerWebSocket>voidtoWebSocket(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.ServerWebSocket>> handler) io.vertx.core.http.HttpServerRequestuploadHandler(io.vertx.core.Handler<io.vertx.core.http.HttpServerFileUpload> handler) uri()io.vertx.core.http.HttpVersionversion()Methods inherited from class io.vertx.core.http.impl.HttpServerRequestWrapper
params, routed, streamIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vertx.core.http.HttpServerRequest
getParam, params, routed, streamIdMethods inherited from interface io.vertx.core.streams.ReadStream
collect, pipe, pipeTo, pipeTo
-
Constructor Details
-
ForwardedServerRequestWrapper
public ForwardedServerRequestWrapper(io.vertx.core.http.HttpServerRequest request, ForwardingProxyOptions forwardingProxyOptions, TrustedProxyCheck trustedProxyCheck)
-
-
Method Details
-
changeTo
-
bytesRead
public long bytesRead()- Specified by:
bytesReadin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
bytesReadin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
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 classio.vertx.core.http.impl.HttpServerRequestWrapper
-
handler
public io.vertx.core.http.HttpServerRequest handler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler) - Specified by:
handlerin interfaceio.vertx.core.http.HttpServerRequest- Specified by:
handlerin interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>- Overrides:
handlerin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
pause
public io.vertx.core.http.HttpServerRequest pause()- Specified by:
pausein interfaceio.vertx.core.http.HttpServerRequest- Specified by:
pausein interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>- Overrides:
pausein classio.vertx.core.http.impl.HttpServerRequestWrapper
-
resume
public io.vertx.core.http.HttpServerRequest resume()- Specified by:
resumein interfaceio.vertx.core.http.HttpServerRequest- Specified by:
resumein interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>- Overrides:
resumein classio.vertx.core.http.impl.HttpServerRequestWrapper
-
fetch
public io.vertx.core.http.HttpServerRequest fetch(long amount) - Specified by:
fetchin interfaceio.vertx.core.http.HttpServerRequest- Specified by:
fetchin interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>- Overrides:
fetchin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
endHandler
- Specified by:
endHandlerin interfaceio.vertx.core.http.HttpServerRequest- Specified by:
endHandlerin interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>- Overrides:
endHandlerin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
version
public io.vertx.core.http.HttpVersion version()- Specified by:
versionin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
versionin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
method
public io.vertx.core.http.HttpMethod method()- Specified by:
methodin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
methodin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
uri
- Specified by:
uriin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
uriin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
path
- Specified by:
pathin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
pathin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
query
- Specified by:
queryin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
queryin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
response
public io.vertx.core.http.HttpServerResponse response()- Specified by:
responsein interfaceio.vertx.core.http.HttpServerRequest- Overrides:
responsein classio.vertx.core.http.impl.HttpServerRequestWrapper
-
headers
public io.vertx.core.MultiMap headers()- Specified by:
headersin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
headersin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
getHeader
- Specified by:
getHeaderin interfaceio.vertx.core.http.HttpServerRequest
-
getHeader
- Specified by:
getHeaderin interfaceio.vertx.core.http.HttpServerRequest
-
params
public io.vertx.core.MultiMap params()- Specified by:
paramsin interfaceio.vertx.core.http.HttpServerRequest
-
getParam
- Specified by:
getParamin interfaceio.vertx.core.http.HttpServerRequest
-
remoteAddress
public io.vertx.core.net.SocketAddress remoteAddress()- Specified by:
remoteAddressin interfaceio.vertx.core.http.HttpServerRequest
-
authority
public io.vertx.core.net.HostAndPort authority()- Specified by:
authorityin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
authorityin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
localAddress
public io.vertx.core.net.SocketAddress localAddress()- Specified by:
localAddressin interfaceio.vertx.core.http.HttpServerRequest
-
peerCertificateChain
Deprecated.- Specified by:
peerCertificateChainin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
peerCertificateChainin classio.vertx.core.http.impl.HttpServerRequestWrapper- Throws:
SSLPeerUnverifiedException
-
sslSession
- Specified by:
sslSessionin interfaceio.vertx.core.http.HttpServerRequest
-
absoluteURI
- Specified by:
absoluteURIin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
absoluteURIin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
scheme
- Specified by:
schemein interfaceio.vertx.core.http.HttpServerRequest- Overrides:
schemein classio.vertx.core.http.impl.HttpServerRequestWrapper
-
host
- Specified by:
hostin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
hostin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
customFrameHandler
public io.vertx.core.http.HttpServerRequest customFrameHandler(io.vertx.core.Handler<io.vertx.core.http.HttpFrame> handler) - Specified by:
customFrameHandlerin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
customFrameHandlerin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
connection
public io.vertx.core.http.HttpConnection connection()- Specified by:
connectionin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
connectionin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
bodyHandler
public io.vertx.core.http.HttpServerRequest bodyHandler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler) - Specified by:
bodyHandlerin interfaceio.vertx.core.http.HttpServerRequest
-
setExpectMultipart
public io.vertx.core.http.HttpServerRequest setExpectMultipart(boolean b) - Specified by:
setExpectMultipartin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
setExpectMultipartin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
isExpectMultipart
public boolean isExpectMultipart()- Specified by:
isExpectMultipartin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
isExpectMultipartin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
uploadHandler
public io.vertx.core.http.HttpServerRequest uploadHandler(io.vertx.core.Handler<io.vertx.core.http.HttpServerFileUpload> handler) - Specified by:
uploadHandlerin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
uploadHandlerin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
formAttributes
public io.vertx.core.MultiMap formAttributes()- Specified by:
formAttributesin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
formAttributesin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
getFormAttribute
- Specified by:
getFormAttributein interfaceio.vertx.core.http.HttpServerRequest- Overrides:
getFormAttributein classio.vertx.core.http.impl.HttpServerRequestWrapper
-
isEnded
public boolean isEnded()- Specified by:
isEndedin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
isEndedin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
isSSL
public boolean isSSL()- Specified by:
isSSLin interfaceio.vertx.core.http.HttpServerRequest
-
streamPriorityHandler
public io.vertx.core.http.HttpServerRequest streamPriorityHandler(io.vertx.core.Handler<io.vertx.core.http.StreamPriority> handler) - Specified by:
streamPriorityHandlerin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
streamPriorityHandlerin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
streamPriority
public io.vertx.core.http.StreamPriority streamPriority()- Specified by:
streamPriorityin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
streamPriorityin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
getCookie
- Specified by:
getCookiein interfaceio.vertx.core.http.HttpServerRequest- Overrides:
getCookiein classio.vertx.core.http.impl.HttpServerRequestWrapper
-
cookieCount
public int cookieCount()- Specified by:
cookieCountin interfaceio.vertx.core.http.HttpServerRequest
-
cookieMap
Deprecated.- Specified by:
cookieMapin interfaceio.vertx.core.http.HttpServerRequest
-
getCookie
- Specified by:
getCookiein interfaceio.vertx.core.http.HttpServerRequest- Overrides:
getCookiein classio.vertx.core.http.impl.HttpServerRequestWrapper
-
cookies
- Specified by:
cookiesin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
cookiesin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
cookies
- Specified by:
cookiesin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
cookiesin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
body
public io.vertx.core.http.HttpServerRequest body(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.buffer.Buffer>> handler) - Specified by:
bodyin interfaceio.vertx.core.http.HttpServerRequest
-
body
public io.vertx.core.Future<io.vertx.core.buffer.Buffer> body()- Specified by:
bodyin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
bodyin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
end
- Specified by:
endin interfaceio.vertx.core.http.HttpServerRequest
-
end
- Specified by:
endin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
endin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
toNetSocket
public void toNetSocket(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.net.NetSocket>> handler) - Specified by:
toNetSocketin interfaceio.vertx.core.http.HttpServerRequest
-
toNetSocket
public io.vertx.core.Future<io.vertx.core.net.NetSocket> toNetSocket()- Specified by:
toNetSocketin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
toNetSocketin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
toWebSocket
public void toWebSocket(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.ServerWebSocket>> handler) - Specified by:
toWebSocketin interfaceio.vertx.core.http.HttpServerRequest
-
toWebSocket
public io.vertx.core.Future<io.vertx.core.http.ServerWebSocket> toWebSocket()- Specified by:
toWebSocketin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
toWebSocketin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
context
public io.vertx.core.Context context()- Overrides:
contextin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
metric
- Overrides:
metricin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
decoderResult
public io.netty.handler.codec.DecoderResult decoderResult()- Specified by:
decoderResultin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
decoderResultin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
setParamsCharset
- Specified by:
setParamsCharsetin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
setParamsCharsetin classio.vertx.core.http.impl.HttpServerRequestWrapper
-
getParamsCharset
- Specified by:
getParamsCharsetin interfaceio.vertx.core.http.HttpServerRequest- Overrides:
getParamsCharsetin classio.vertx.core.http.impl.HttpServerRequestWrapper
-