Interface ServerHttpRequest
- All Superinterfaces:
- HttpMessage,- HttpRequest,- ReactiveHttpInputMessage
- All Known Implementing Classes:
- AbstractServerHttpRequest,- MockServerHttpRequest,- ServerHttpRequestDecorator
Represents a reactive server-side HTTP request.
- Since:
- 5.0
- Author:
- Arjen Poutsma, Rossen Stoyanchev, Sam Brannen
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder for mutating an existingServerHttpRequest.
- 
Method SummaryModifier and TypeMethodDescriptionReturn a read-only map of cookies sent by the client.getId()Return an id that represents the underlying connection, if available, or the request for the purpose of correlating log messages.default InetSocketAddressReturn the local address the request was accepted on, if available.getPath()Returns a structured representation of the full request path up to but not including thequery.Return a read-only map with parsed and decoded query parameter values.default InetSocketAddressReturn the remote address where this request is connected to, if available.default SslInfoReturn the SSL session information if the request has been transmitted over a secure protocol including SSL certificates, if available.default ServerHttpRequest.Buildermutate()Return a builder to mutate properties of this request by wrapping it withServerHttpRequestDecoratorand returning either mutated values or delegating back to this instance.Methods inherited from interface org.springframework.http.HttpMessagegetHeadersMethods inherited from interface org.springframework.http.HttpRequestgetMethod, getURIMethods inherited from interface org.springframework.http.ReactiveHttpInputMessagegetBody
- 
Method Details- 
getIdString getId()Return an id that represents the underlying connection, if available, or the request for the purpose of correlating log messages.- Since:
- 5.1
- See Also:
 
- 
getPathRequestPath getPath()Returns a structured representation of the full request path up to but not including thequery.The returned path is subdivided into a RequestPath.contextPath()portion and the remainingpathWithinApplicationportion. The latter can be passed into methods ofPathPatternfor path matching purposes.
- 
getQueryParamsMultiValueMap<String,String> getQueryParams()Return a read-only map with parsed and decoded query parameter values.
- 
getCookiesMultiValueMap<String,HttpCookie> getCookies()Return a read-only map of cookies sent by the client.
- 
getLocalAddressReturn the local address the request was accepted on, if available.- Since:
- 5.2.3
 
- 
getRemoteAddressReturn the remote address where this request is connected to, if available.
- 
getSslInfoReturn the SSL session information if the request has been transmitted over a secure protocol including SSL certificates, if available.- Returns:
- the session information, or nullif none available
- Since:
- 5.0.2
 
- 
mutateReturn a builder to mutate properties of this request by wrapping it withServerHttpRequestDecoratorand returning either mutated values or delegating back to this instance.
 
-