HttpRequestpublic interface ServerRequest extends HttpRequest
HttpRequest.Path| Modifier and Type | Method | Description |
|---|---|---|
Content |
content() |
Returns
reactive representation of the request content. |
ContextualRegistry |
context() |
Returns a request context as a child of
WebServer context. |
RequestHeaders |
headers() |
Returns http request headers.
|
boolean |
isSecure() |
Returns an indicating whether this request was made using a secure channel, such as HTTPS.
|
java.lang.String |
localAddress() |
Returns the Internet Protocol (IP) address of the interface on which the request was received.
|
int |
localPort() |
Returns the Internet Protocol (IP) port number of the interface on which the request was received.
|
void |
next() |
Continue request processing on the next registered handler.
|
void |
next(java.lang.Throwable t) |
Continues or enters an error branch of a request processing.
|
java.lang.String |
remoteAddress() |
Returns the Internet Protocol (IP) address of the client or last proxy that sent the request.
|
int |
remotePort() |
Returns the Internet Protocol (IP) source port of the client or last proxy that sent the request.
|
long |
requestId() |
A unique correlation ID that is associated with this request and its associated response.
|
io.opentracing.Span |
span() |
Deprecated.
use
spanContext() instead |
io.opentracing.SpanContext |
spanContext() |
Returns a span context related to the current request.
|
WebServer |
webServer() |
Returns actual
WebServer instance. |
fragment, method, path, query, queryParams, uri, versionvoid next()
If error is being handled, this is identical to calling next(Throwable)
with a cause of the error.
void next(java.lang.Throwable t)
t except that
the exception is directly passed to a next registered ErrorHandler
and this it's faster.
It is not possible to leave error request processing and continue in registered Handler.
t - a cause that is directly passed to a next registered ErrorHandlerWebServer webServer()
WebServer instance.WebServer instanceContextualRegistry context()
WebServer context.java.lang.String localAddress()
int localPort()
java.lang.String remoteAddress()
int remotePort()
boolean isSecure()
true if the request was made using a secure channelRequestHeaders headers()
Content content()
reactive representation of the request content.Contentlong requestId()
@Deprecated io.opentracing.Span span()
spanContext() insteadHandler call.
Span is a tracing component from opentracing.io standard.
io.opentracing.SpanContext spanContext()
SpanContext is a tracing component from opentracing.io standard.
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.