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
delegate
Fields inherited from interface io.vertx.core.http.HttpServerRequest
DEFAULT_INVALID_REQUEST_HANDLER
-
Constructor Summary
ConstructorDescriptionForwardedServerRequestWrapper
(io.vertx.core.http.HttpServerRequest request, ForwardingProxyOptions forwardingProxyOptions, TrustedProxyCheck trustedProxyCheck) -
Method Summary
Modifier and TypeMethodDescriptionio.vertx.core.net.HostAndPort
io.vertx.core.Future<io.vertx.core.buffer.Buffer>
body()
io.vertx.core.http.HttpServerRequest
body
(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.buffer.Buffer>> handler) io.vertx.core.http.HttpServerRequest
bodyHandler
(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler) long
(package private) void
io.vertx.core.http.HttpConnection
io.vertx.core.Context
context()
int
Deprecated.Set<io.vertx.core.http.Cookie>
cookies()
Set<io.vertx.core.http.Cookie>
io.vertx.core.http.HttpServerRequest
customFrameHandler
(io.vertx.core.Handler<io.vertx.core.http.HttpFrame> handler) io.netty.handler.codec.DecoderResult
io.vertx.core.Future<Void>
end()
void
io.vertx.core.http.HttpServerRequest
endHandler
(io.vertx.core.Handler<Void> handler) io.vertx.core.http.HttpServerRequest
exceptionHandler
(io.vertx.core.Handler<Throwable> handler) io.vertx.core.http.HttpServerRequest
fetch
(long amount) io.vertx.core.MultiMap
io.vertx.core.http.Cookie
io.vertx.core.http.Cookie
getHeader
(CharSequence charSequence) io.vertx.core.http.HttpServerRequest
handler
(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler) io.vertx.core.MultiMap
headers()
host()
boolean
isEnded()
boolean
boolean
isSSL()
io.vertx.core.net.SocketAddress
io.vertx.core.http.HttpMethod
method()
metric()
io.vertx.core.MultiMap
params()
path()
io.vertx.core.http.HttpServerRequest
pause()
Deprecated.query()
io.vertx.core.net.SocketAddress
io.vertx.core.http.HttpServerResponse
response()
io.vertx.core.http.HttpServerRequest
resume()
scheme()
io.vertx.core.http.HttpServerRequest
setExpectMultipart
(boolean b) io.vertx.core.http.HttpServerRequest
setParamsCharset
(String charset) io.vertx.core.http.StreamPriority
io.vertx.core.http.HttpServerRequest
streamPriorityHandler
(io.vertx.core.Handler<io.vertx.core.http.StreamPriority> handler) io.vertx.core.Future<io.vertx.core.net.NetSocket>
void
toNetSocket
(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.net.NetSocket>> handler) io.vertx.core.Future<io.vertx.core.http.ServerWebSocket>
void
toWebSocket
(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.ServerWebSocket>> handler) io.vertx.core.http.HttpServerRequest
uploadHandler
(io.vertx.core.Handler<io.vertx.core.http.HttpServerFileUpload> handler) uri()
io.vertx.core.http.HttpVersion
version()
Methods inherited from class io.vertx.core.http.impl.HttpServerRequestWrapper
routed, streamId
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
getParam, routed, streamId
Methods inherited from interface io.vertx.core.streams.ReadStream
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:
bytesRead
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
bytesRead
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
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 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:
handler
in interfaceio.vertx.core.http.HttpServerRequest
- Specified by:
handler
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
- Overrides:
handler
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
pause
public io.vertx.core.http.HttpServerRequest pause()- Specified by:
pause
in interfaceio.vertx.core.http.HttpServerRequest
- Specified by:
pause
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
- Overrides:
pause
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
resume
public io.vertx.core.http.HttpServerRequest resume()- Specified by:
resume
in interfaceio.vertx.core.http.HttpServerRequest
- Specified by:
resume
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
- Overrides:
resume
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
fetch
public io.vertx.core.http.HttpServerRequest fetch(long amount) - Specified by:
fetch
in interfaceio.vertx.core.http.HttpServerRequest
- Specified by:
fetch
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
- Overrides:
fetch
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
endHandler
- Specified by:
endHandler
in interfaceio.vertx.core.http.HttpServerRequest
- Specified by:
endHandler
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
- Overrides:
endHandler
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
version
public io.vertx.core.http.HttpVersion version()- Specified by:
version
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
version
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
method
public io.vertx.core.http.HttpMethod method()- Specified by:
method
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
method
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
uri
- Specified by:
uri
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
uri
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
path
- Specified by:
path
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
path
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
query
- Specified by:
query
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
query
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
response
public io.vertx.core.http.HttpServerResponse response()- Specified by:
response
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
response
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
headers
public io.vertx.core.MultiMap headers()- Specified by:
headers
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
headers
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
getHeader
- Specified by:
getHeader
in interfaceio.vertx.core.http.HttpServerRequest
-
getHeader
- Specified by:
getHeader
in interfaceio.vertx.core.http.HttpServerRequest
-
params
public io.vertx.core.MultiMap params()- Specified by:
params
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
params
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
getParam
- Specified by:
getParam
in interfaceio.vertx.core.http.HttpServerRequest
-
remoteAddress
public io.vertx.core.net.SocketAddress remoteAddress()- Specified by:
remoteAddress
in interfaceio.vertx.core.http.HttpServerRequest
-
authority
public io.vertx.core.net.HostAndPort authority()- Specified by:
authority
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
authority
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
localAddress
public io.vertx.core.net.SocketAddress localAddress()- Specified by:
localAddress
in interfaceio.vertx.core.http.HttpServerRequest
-
peerCertificateChain
Deprecated.- Specified by:
peerCertificateChain
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
peerCertificateChain
in classio.vertx.core.http.impl.HttpServerRequestWrapper
- Throws:
SSLPeerUnverifiedException
-
sslSession
- Specified by:
sslSession
in interfaceio.vertx.core.http.HttpServerRequest
-
absoluteURI
- Specified by:
absoluteURI
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
absoluteURI
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
scheme
- Specified by:
scheme
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
scheme
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
host
- Specified by:
host
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
host
in 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:
customFrameHandler
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
customFrameHandler
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
connection
public io.vertx.core.http.HttpConnection connection()- Specified by:
connection
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
connection
in 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:
bodyHandler
in interfaceio.vertx.core.http.HttpServerRequest
-
setExpectMultipart
public io.vertx.core.http.HttpServerRequest setExpectMultipart(boolean b) - Specified by:
setExpectMultipart
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
setExpectMultipart
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
isExpectMultipart
public boolean isExpectMultipart()- Specified by:
isExpectMultipart
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
isExpectMultipart
in 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:
uploadHandler
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
uploadHandler
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
formAttributes
public io.vertx.core.MultiMap formAttributes()- Specified by:
formAttributes
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
formAttributes
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
getFormAttribute
- Specified by:
getFormAttribute
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
getFormAttribute
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
isEnded
public boolean isEnded()- Specified by:
isEnded
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
isEnded
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
isSSL
public boolean isSSL()- Specified by:
isSSL
in 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:
streamPriorityHandler
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
streamPriorityHandler
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
streamPriority
public io.vertx.core.http.StreamPriority streamPriority()- Specified by:
streamPriority
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
streamPriority
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
getCookie
- Specified by:
getCookie
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
getCookie
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
cookieCount
public int cookieCount()- Specified by:
cookieCount
in interfaceio.vertx.core.http.HttpServerRequest
-
cookieMap
Deprecated.- Specified by:
cookieMap
in interfaceio.vertx.core.http.HttpServerRequest
-
getCookie
- Specified by:
getCookie
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
getCookie
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
cookies
- Specified by:
cookies
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
cookies
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
cookies
- Specified by:
cookies
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
cookies
in 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:
body
in interfaceio.vertx.core.http.HttpServerRequest
-
body
public io.vertx.core.Future<io.vertx.core.buffer.Buffer> body()- Specified by:
body
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
body
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
end
- Specified by:
end
in interfaceio.vertx.core.http.HttpServerRequest
-
end
- Specified by:
end
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
end
in 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:
toNetSocket
in interfaceio.vertx.core.http.HttpServerRequest
-
toNetSocket
public io.vertx.core.Future<io.vertx.core.net.NetSocket> toNetSocket()- Specified by:
toNetSocket
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
toNetSocket
in 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:
toWebSocket
in interfaceio.vertx.core.http.HttpServerRequest
-
toWebSocket
public io.vertx.core.Future<io.vertx.core.http.ServerWebSocket> toWebSocket()- Specified by:
toWebSocket
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
toWebSocket
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
context
public io.vertx.core.Context context()- Overrides:
context
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
metric
- Overrides:
metric
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
decoderResult
public io.netty.handler.codec.DecoderResult decoderResult()- Specified by:
decoderResult
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
decoderResult
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
setParamsCharset
- Specified by:
setParamsCharset
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
setParamsCharset
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-
getParamsCharset
- Specified by:
getParamsCharset
in interfaceio.vertx.core.http.HttpServerRequest
- Overrides:
getParamsCharset
in classio.vertx.core.http.impl.HttpServerRequestWrapper
-