public class ServletServerHttpRequest extends AbstractServerHttpRequest
ServerHttpRequest to the Servlet HttpServletRequest.ServerHttpRequest.Builder| Constructor and Description |
|---|
ServletServerHttpRequest(HttpServletRequest request,
AsyncContext asyncContext,
DataBufferFactory bufferFactory,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Flux<DataBuffer> |
getBody()
Return the body of the message as a
Publisher. |
String |
getMethodValue()
Return the HTTP method of the request as a String
|
InetSocketAddress |
getRemoteAddress()
Return the remote address where this request is connected to, if available.
|
HttpServletRequest |
getServletRequest() |
protected MultiValueMap<String,HttpCookie> |
initCookies()
Obtain the cookies from the underlying "native" request and adapt those to
an
HttpCookie map. |
protected DataBuffer |
readFromInputStream()
Read from the request body InputStream and return a DataBuffer.
|
getCookies, getHeaders, getPath, getQueryParams, getURI, initQueryParamsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmutategetMethodprotected final Log logger
public ServletServerHttpRequest(HttpServletRequest request, AsyncContext asyncContext, DataBufferFactory bufferFactory, int bufferSize) throws IOException
IOExceptionpublic HttpServletRequest getServletRequest()
public String getMethodValue()
HttpRequestprotected MultiValueMap<String,HttpCookie> initCookies()
AbstractServerHttpRequestHttpCookie 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 AbstractServerHttpRequestpublic InetSocketAddress getRemoteAddress()
ServerHttpRequestpublic reactor.core.publisher.Flux<DataBuffer> getBody()
ReactiveHttpInputMessagePublisher.@Nullable protected DataBuffer readFromInputStream() throws IOException
ServletInputStream.isReady() returns "true".IOException