public class ServletServerHttpRequest extends AbstractServerHttpRequest
ServerHttpRequest
to the Servlet HttpServletRequest
.Constructor and Description |
---|
ServletServerHttpRequest(HttpServletRequest request,
DataBufferFactory dataBufferFactory,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<DataBuffer> |
getBody()
Return the body of the message as a
Publisher . |
String |
getContextPath()
Returns the portion of the URL path that represents the context path for
the current
HttpHandler . |
HttpMethod |
getMethod()
Return the HTTP method of the request.
|
HttpServletRequest |
getServletRequest() |
protected MultiValueMap<String,HttpCookie> |
initCookies()
Initialize the cookies from the underlying request.
|
protected HttpHeaders |
initHeaders()
Initialize the headers from the underlying request.
|
protected URI |
initUri()
Initialize a URI that represents the request.
|
getCookies, getHeaders, getQueryParams, getURI, initQueryParams
public ServletServerHttpRequest(HttpServletRequest request, DataBufferFactory dataBufferFactory, int bufferSize)
public HttpServletRequest getServletRequest()
public HttpMethod getMethod()
HttpRequest
null
if not resolvable (e.g. in case of a non-standard HTTP method)public String getContextPath()
ServerHttpRequest
HttpHandler
. The context path is always at the
beginning of the request path. It starts with "/" but but does not end
with "/". This method may return an empty string if no context path is
configured.protected URI initUri() throws URISyntaxException
AbstractServerHttpRequest
Invoked lazily on the first call to AbstractServerHttpRequest.getURI()
and then cached.
initUri
in class AbstractServerHttpRequest
URISyntaxException
protected HttpHeaders initHeaders()
AbstractServerHttpRequest
Invoked lazily on the first call to AbstractServerHttpRequest.getHeaders()
and then cached.
initHeaders
in class AbstractServerHttpRequest
protected MultiValueMap<String,HttpCookie> initCookies()
AbstractServerHttpRequest
Invoked lazily on the first access to cookies via AbstractServerHttpRequest.getHeaders()
and then cached.
initCookies
in class AbstractServerHttpRequest
public reactor.core.publisher.Flux<DataBuffer> getBody()
ReactiveHttpInputMessage
Publisher
.