public interface ServerRequest extends HttpRequest
HttpRequest.Path| Modifier and Type | Method and 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.
|
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(Throwable t)
Continues or enters an error branch of a request processing.
|
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.
|
Span |
span()
Deprecated.
use
spanContext() instead |
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(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.String localAddress()
int localPort()
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 Span span()
spanContext() insteadHandler call.
Span is a tracing component from opentracing.io standard.
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.