Package io.helidon.webserver
Interface ServerRequest
- 
- All Superinterfaces:
 HttpRequest
public interface ServerRequest extends HttpRequest
Represents HTTP Request and provides WebServer related API. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface io.helidon.common.http.HttpRequest
HttpRequest.Path 
 - 
 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Contentcontent()Returnsreactive representationof the request content.ContextualRegistrycontext()Returns a request context as a child ofWebServercontext.RequestHeadersheaders()Returns http request headers.booleanisSecure()Returns an indicating whether this request was made using a secure channel, such as HTTPS.StringlocalAddress()Returns the Internet Protocol (IP) address of the interface on which the request was received.intlocalPort()Returns the Internet Protocol (IP) port number of the interface on which the request was received.voidnext()Continue request processing on the next registered handler.voidnext(Throwable t)Continues or enters an error branch of a request processing.StringremoteAddress()Returns the Internet Protocol (IP) address of the client or last proxy that sent the request.intremotePort()Returns the Internet Protocol (IP) source port of the client or last proxy that sent the request.longrequestId()A unique correlation ID that is associated with this request and its associated response.Spanspan()Deprecated.usespanContext()insteadSpanContextspanContext()Deprecated.this method will have a different return type in next backward incompatible version of Helidon.Tracertracer()WebServerwebServer()Returns actualWebServerinstance.- 
Methods inherited from interface io.helidon.common.http.HttpRequest
fragment, method, path, query, queryParams, uri, version 
 - 
 
 - 
 
- 
- 
Method Detail
- 
next
void next()
Continue request processing on the next registered handler.If error is being handled, this is identical to calling
next(Throwable)with a cause of the error. 
- 
next
void next(Throwable t)
Continues or enters an error branch of a request processing. This call has identical effect to throwing the exceptiontexcept that the exception is directly passed to a next registeredErrorHandlerand this it's faster.It is not possible to leave error request processing and continue in registered
Handler.- Parameters:
 t- a cause that is directly passed to a next registeredErrorHandler
 
- 
webServer
WebServer webServer()
Returns actualWebServerinstance.- Returns:
 - actual 
WebServerinstance 
 
- 
context
ContextualRegistry context()
Returns a request context as a child ofWebServercontext.- Returns:
 - a request context
 
 
- 
localAddress
String localAddress()
Returns the Internet Protocol (IP) address of the interface on which the request was received.- Returns:
 - an address
 
 
- 
localPort
int localPort()
Returns the Internet Protocol (IP) port number of the interface on which the request was received.- Returns:
 - the port number
 
 
- 
remoteAddress
String remoteAddress()
Returns the Internet Protocol (IP) address of the client or last proxy that sent the request.- Returns:
 - the address of the client that sent the request
 
 
- 
remotePort
int remotePort()
Returns the Internet Protocol (IP) source port of the client or last proxy that sent the request.- Returns:
 - the port number.
 
 
- 
isSecure
boolean isSecure()
Returns an indicating whether this request was made using a secure channel, such as HTTPS.- Returns:
 trueif the request was made using a secure channel
 
- 
headers
RequestHeaders headers()
Returns http request headers.- Returns:
 - an http headers
 
 
- 
content
Content content()
Returnsreactive representationof the request content.- Returns:
 - a request content
 - See Also:
 Content
 
- 
requestId
long requestId()
A unique correlation ID that is associated with this request and its associated response.- Returns:
 - a unique correlation ID associated with this request and its response
 
 
- 
span
@Deprecated Span span()
Deprecated.usespanContext()insteadReturns a span connected with currentHandlercall.Spanis a tracing component from opentracing.io standard.- Returns:
 - a current span
 
 
- 
spanContext
SpanContext spanContext()
Deprecated.this method will have a different return type in next backward incompatible version of Helidon. It will returnOptional<SpanContext>. All methods that can return null will useOptionalReturns a span context related to the current request.SpanContextis a tracing component from opentracing.io standard.- Returns:
 - the related span context, may be null if not enabled
 
 
- 
tracer
Tracer tracer()
- Returns:
 - the tracer associated, or 
GlobalTracer.get() 
 
 - 
 
 -