public class RxNettyServerHttpRequest extends AbstractServerHttpRequest
ServerHttpRequest
to the RxNetty HttpServerRequest
.ServerHttpRequest.Builder
Modifier and Type | Field and Description |
---|---|
private NettyDataBufferFactory |
dataBufferFactory |
private java.net.InetSocketAddress |
remoteAddress |
private <any> |
request |
Constructor and Description |
---|
RxNettyServerHttpRequest(<any> request,
NettyDataBufferFactory dataBufferFactory,
java.net.InetSocketAddress remoteAddress) |
Modifier and Type | Method and Description |
---|---|
private static java.net.URI |
getBaseUrl(java.net.InetSocketAddress address) |
<any> |
getBody()
Return the body of the message as a
Publisher . |
HttpMethod |
getMethod()
Return the HTTP method of the request.
|
java.util.Optional<java.net.InetSocketAddress> |
getRemoteAddress()
Returns the remote address where this request is connected to.
|
<any> |
getRxNettyRequest() |
protected MultiValueMap<java.lang.String,HttpCookie> |
initCookies()
Obtain the cookies from the underlying "native" request and adapt those to
an
HttpCookie map. |
private static HttpHeaders |
initHeaders(<any> request) |
private static java.net.URI |
initUri(<any> request,
java.net.InetSocketAddress remoteAddress) |
getCookies, getHeaders, getQueryParams, getURI, initQueryParams
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContextPath, mutate
private final <any> request
private final NettyDataBufferFactory dataBufferFactory
private final java.net.InetSocketAddress remoteAddress
public RxNettyServerHttpRequest(<any> request, NettyDataBufferFactory dataBufferFactory, java.net.InetSocketAddress remoteAddress)
private static java.net.URI initUri(<any> request, java.net.InetSocketAddress remoteAddress)
private static java.net.URI getBaseUrl(java.net.InetSocketAddress address)
private static HttpHeaders initHeaders(<any> request)
public <any> getRxNettyRequest()
public HttpMethod getMethod()
HttpRequest
null
if not resolvable (e.g. in case of a non-standard HTTP method)protected MultiValueMap<java.lang.String,HttpCookie> initCookies()
AbstractServerHttpRequest
HttpCookie
map. The return value is turned into an immutable
map and cached.
Note that this method is invoked lazily on access to
AbstractServerHttpRequest.getCookies()
. Sub-classes should synchronize cookie
initialization if the underlying "native" request does not provide
thread-safe access to cookie data.
initCookies
in class AbstractServerHttpRequest
public java.util.Optional<java.net.InetSocketAddress> getRemoteAddress()
ServerHttpRequest
public <any> getBody()
ReactiveHttpInputMessage
Publisher
.