Package io.quarkus.vertx.http.runtime
Class ForwardedServerRequestWrapper
- java.lang.Object
-
- io.quarkus.vertx.http.runtime.ForwardedServerRequestWrapper
-
- 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
class ForwardedServerRequestWrapper extends Object implements io.vertx.core.http.HttpServerRequest, io.vertx.core.http.impl.HttpServerRequestInternal
-
-
Constructor Summary
Constructors Constructor Description ForwardedServerRequestWrapper(io.vertx.core.http.HttpServerRequest request, ForwardingProxyOptions forwardingProxyOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
absoluteURI()
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
bytesRead()
(package private) void
changeTo(io.vertx.core.http.HttpMethod method, String uri)
io.vertx.core.http.HttpConnection
connection()
io.vertx.core.Context
context()
int
cookieCount()
Map<String,io.vertx.core.http.Cookie>
cookieMap()
Deprecated.Set<io.vertx.core.http.Cookie>
cookies()
Set<io.vertx.core.http.Cookie>
cookies(String name)
io.vertx.core.http.HttpServerRequest
customFrameHandler(io.vertx.core.Handler<io.vertx.core.http.HttpFrame> handler)
io.netty.handler.codec.DecoderResult
decoderResult()
io.vertx.core.Future<Void>
end()
void
end(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
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
formAttributes()
io.vertx.core.http.Cookie
getCookie(String name)
io.vertx.core.http.Cookie
getCookie(String name, String domain, String path)
String
getFormAttribute(String s)
String
getHeader(CharSequence charSequence)
String
getHeader(String s)
String
getParam(String s)
String
getParamsCharset()
io.vertx.core.http.HttpServerRequest
handler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler)
io.vertx.core.MultiMap
headers()
String
host()
boolean
isEnded()
boolean
isExpectMultipart()
boolean
isSSL()
io.vertx.core.net.SocketAddress
localAddress()
io.vertx.core.http.HttpMethod
method()
Object
metric()
io.vertx.core.MultiMap
params()
String
path()
io.vertx.core.http.HttpServerRequest
pause()
X509Certificate[]
peerCertificateChain()
Deprecated.String
query()
io.vertx.core.net.SocketAddress
remoteAddress()
io.vertx.core.http.HttpServerResponse
response()
io.vertx.core.http.HttpServerRequest
resume()
String
scheme()
io.vertx.core.http.HttpServerRequest
setExpectMultipart(boolean b)
io.vertx.core.http.HttpServerRequest
setParamsCharset(String charset)
SSLSession
sslSession()
io.vertx.core.http.StreamPriority
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>
toNetSocket()
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>
toWebSocket()
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)
String
uri()
io.vertx.core.http.HttpVersion
version()
-
-
-
Constructor Detail
-
ForwardedServerRequestWrapper
ForwardedServerRequestWrapper(io.vertx.core.http.HttpServerRequest request, ForwardingProxyOptions forwardingProxyOptions)
-
-
Method Detail
-
changeTo
void changeTo(io.vertx.core.http.HttpMethod method, String uri)
-
bytesRead
public long bytesRead()
- Specified by:
bytesRead
in interfaceio.vertx.core.http.HttpServerRequest
-
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
-
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>
-
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>
-
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>
-
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>
-
endHandler
public io.vertx.core.http.HttpServerRequest endHandler(io.vertx.core.Handler<Void> handler)
- Specified by:
endHandler
in interfaceio.vertx.core.http.HttpServerRequest
- Specified by:
endHandler
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
-
version
public io.vertx.core.http.HttpVersion version()
- Specified by:
version
in interfaceio.vertx.core.http.HttpServerRequest
-
method
public io.vertx.core.http.HttpMethod method()
- Specified by:
method
in interfaceio.vertx.core.http.HttpServerRequest
-
uri
public String uri()
- Specified by:
uri
in interfaceio.vertx.core.http.HttpServerRequest
-
path
public String path()
- Specified by:
path
in interfaceio.vertx.core.http.HttpServerRequest
-
query
public String query()
- Specified by:
query
in interfaceio.vertx.core.http.HttpServerRequest
-
response
public io.vertx.core.http.HttpServerResponse response()
- Specified by:
response
in interfaceio.vertx.core.http.HttpServerRequest
-
headers
public io.vertx.core.MultiMap headers()
- Specified by:
headers
in interfaceio.vertx.core.http.HttpServerRequest
-
getHeader
public String getHeader(String s)
- Specified by:
getHeader
in interfaceio.vertx.core.http.HttpServerRequest
-
getHeader
public String getHeader(CharSequence charSequence)
- 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
-
getParam
public String getParam(String s)
- 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
-
localAddress
public io.vertx.core.net.SocketAddress localAddress()
- Specified by:
localAddress
in interfaceio.vertx.core.http.HttpServerRequest
-
peerCertificateChain
@Deprecated public X509Certificate[] peerCertificateChain() throws SSLPeerUnverifiedException
Deprecated.- Specified by:
peerCertificateChain
in interfaceio.vertx.core.http.HttpServerRequest
- Throws:
SSLPeerUnverifiedException
-
sslSession
public SSLSession sslSession()
- Specified by:
sslSession
in interfaceio.vertx.core.http.HttpServerRequest
-
absoluteURI
public String absoluteURI()
- Specified by:
absoluteURI
in interfaceio.vertx.core.http.HttpServerRequest
-
scheme
public String scheme()
- Specified by:
scheme
in interfaceio.vertx.core.http.HttpServerRequest
-
host
public String host()
- Specified by:
host
in interfaceio.vertx.core.http.HttpServerRequest
-
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
-
connection
public io.vertx.core.http.HttpConnection connection()
- Specified by:
connection
in interfaceio.vertx.core.http.HttpServerRequest
-
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
-
isExpectMultipart
public boolean isExpectMultipart()
- Specified by:
isExpectMultipart
in interfaceio.vertx.core.http.HttpServerRequest
-
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
-
formAttributes
public io.vertx.core.MultiMap formAttributes()
- Specified by:
formAttributes
in interfaceio.vertx.core.http.HttpServerRequest
-
getFormAttribute
public String getFormAttribute(String s)
- Specified by:
getFormAttribute
in interfaceio.vertx.core.http.HttpServerRequest
-
isEnded
public boolean isEnded()
- Specified by:
isEnded
in interfaceio.vertx.core.http.HttpServerRequest
-
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
-
streamPriority
public io.vertx.core.http.StreamPriority streamPriority()
- Specified by:
streamPriority
in interfaceio.vertx.core.http.HttpServerRequest
-
getCookie
public io.vertx.core.http.Cookie getCookie(String name)
- Specified by:
getCookie
in interfaceio.vertx.core.http.HttpServerRequest
-
cookieCount
public int cookieCount()
- Specified by:
cookieCount
in interfaceio.vertx.core.http.HttpServerRequest
-
cookieMap
@Deprecated public Map<String,io.vertx.core.http.Cookie> cookieMap()
Deprecated.- Specified by:
cookieMap
in interfaceio.vertx.core.http.HttpServerRequest
-
getCookie
public io.vertx.core.http.Cookie getCookie(String name, String domain, String path)
- Specified by:
getCookie
in interfaceio.vertx.core.http.HttpServerRequest
-
cookies
public Set<io.vertx.core.http.Cookie> cookies(String name)
- Specified by:
cookies
in interfaceio.vertx.core.http.HttpServerRequest
-
cookies
public Set<io.vertx.core.http.Cookie> cookies()
- Specified by:
cookies
in interfaceio.vertx.core.http.HttpServerRequest
-
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
-
end
public void end(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
- Specified by:
end
in interfaceio.vertx.core.http.HttpServerRequest
-
end
public io.vertx.core.Future<Void> end()
- Specified by:
end
in interfaceio.vertx.core.http.HttpServerRequest
-
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
-
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
-
context
public io.vertx.core.Context context()
- Specified by:
context
in interfaceio.vertx.core.http.impl.HttpServerRequestInternal
-
metric
public Object metric()
- Specified by:
metric
in interfaceio.vertx.core.http.impl.HttpServerRequestInternal
-
decoderResult
public io.netty.handler.codec.DecoderResult decoderResult()
- Specified by:
decoderResult
in interfaceio.vertx.core.http.HttpServerRequest
-
setParamsCharset
public io.vertx.core.http.HttpServerRequest setParamsCharset(String charset)
- Specified by:
setParamsCharset
in interfaceio.vertx.core.http.HttpServerRequest
-
getParamsCharset
public String getParamsCharset()
- Specified by:
getParamsCharset
in interfaceio.vertx.core.http.HttpServerRequest
-
-