ServerHttpRequest to the Servlet HttpServletRequest.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final AsyncListener | |
| private final ServletServerHttpRequest. | |
| private final byte[] | |
| private final DataBufferFactory | |
| private final Object | |
| pack-priv static final DataBuffer | |
| private final ServletInputStream | |
| private final HttpServletRequest |
| Access | Constructor and Description |
|---|---|
| public | ServletServerHttpRequest(HttpServletRequest request, AsyncContext asyncContext, String servletPath, DataBufferFactory bufferFactory, int bufferSize)
|
| public | ServletServerHttpRequest(MultiValueMap<String, String> headers, HttpServletRequest request, AsyncContext asyncContext, String servletPath, DataBufferFactory bufferFactory, int bufferSize)
|
| Modifier and Type | Method and Description |
|---|---|
| private static MultiValueMap | |
| pack-priv AsyncListener | getAsyncListener()
Return an |
| public Flux | getBody()
Implements org. Publisher.
|
| protected final ServletInputStream | |
| public InetSocketAddress | getLocalAddress()
Overrides default org. |
| public <T> T | getNativeRequest()
Implements abstract org. |
| public InetSocketAddress | getRemoteAddress()
Overrides default org. |
| private String | |
| private X509Certificate[] | |
| protected MultiValueMap | initCookies()
Implements abstract org. HttpCookie map.
|
| private static MultiValueMap | |
| protected SslInfo | initSslInfo()
Implements abstract org. |
| private static URI | |
| protected final void | |
| pack-priv DataBuffer | Returns: a DataBuffer with data read, orAbstractListenerReadPublisher#EMPTY_BUFFER if 0 bytes were read,
or EOF_BUFFER if the input stream returned -1.Read from the request body InputStream and return a DataBuffer. |
| asyncListener | back to summary |
|---|---|
| private final AsyncListener asyncListener | |
| bodyPublisher | back to summary |
|---|---|
| private final ServletServerHttpRequest. | |
| buffer | back to summary |
|---|---|
| private final byte[] buffer | |
| bufferFactory | back to summary |
|---|---|
| private final DataBufferFactory bufferFactory | |
| cookieLock | back to summary |
|---|---|
| private final Object cookieLock | |
| EOF_BUFFER | back to summary |
|---|---|
| pack-priv static final DataBuffer EOF_BUFFER | |
| inputStream | back to summary |
|---|---|
| private final ServletInputStream inputStream | |
| request | back to summary |
|---|---|
| private final HttpServletRequest request | |
| ServletServerHttpRequest | back to summary |
|---|---|
| public ServletServerHttpRequest(HttpServletRequest request, AsyncContext asyncContext, String servletPath, DataBufferFactory bufferFactory, int bufferSize) throws IOException, URISyntaxException | |
| ServletServerHttpRequest | back to summary |
|---|---|
| public ServletServerHttpRequest(MultiValueMap<String, String> headers, HttpServletRequest request, AsyncContext asyncContext, String servletPath, DataBufferFactory bufferFactory, int bufferSize) throws IOException, URISyntaxException | |
| createDefaultHttpHeaders | back to summary |
|---|---|
| private static MultiValueMap | |
| getAsyncListener | back to summary |
|---|---|
| pack-priv AsyncListener getAsyncListener() Return an | |
| getBody | back to summary |
|---|---|
| public Flux Implements org. Doc from org. Return the body of the message as a
| |
| getInputStream | back to summary |
|---|---|
| protected final ServletInputStream getInputStream() Return the | |
| getLocalAddress | back to summary |
|---|---|
| public InetSocketAddress getLocalAddress() Overrides default org. Doc from org. Return the local address the request was accepted on, if available. | |
| getNativeRequest | back to summary |
|---|---|
| public <T> T getNativeRequest() Implements abstract org. Doc from org. Return the underlying server response. Note This is exposed mainly for internal framework use such as WebSocket upgrades in the spring-webflux module.
| |
| getRemoteAddress | back to summary |
|---|---|
| public InetSocketAddress getRemoteAddress() Overrides default org. Doc from org. Return the remote address where this request is connected to, if available. | |
| getSslSessionId | back to summary |
|---|---|
private String getSslSessionId()
| |
| getX509Certificates | back to summary |
|---|---|
private X509Certificate[] getX509Certificates()
| |
| initCookies | back to summary |
|---|---|
| protected MultiValueMap Implements abstract org. Doc from org. Obtain the cookies from the underlying "native" request and adapt those to
an Note that this method is invoked lazily on access to
| |
| initHeaders | back to summary |
|---|---|
| private static MultiValueMap | |
| initSslInfo | back to summary |
|---|---|
| protected SslInfo initSslInfo() Implements abstract org. Doc from org. Obtain SSL session information from the underlying "native" request. | |
| initUri | back to summary |
|---|---|
| private static URI initUri(HttpServletRequest request) throws URISyntaxException | |
| logBytesRead | back to summary |
|---|---|
| protected final void logBytesRead(int read) | |
| readFromInputStream | back to summary |
|---|---|
| pack-priv DataBuffer readFromInputStream() throws IOException Read from the request body InputStream and return a DataBuffer.
Invoked only when
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | onComplete(AsyncEvent
Provides access to the objects associated with the event event)Implements jakarta. AsyncContext#complete() has been processed by the container.
|
| public void | onError(AsyncEvent
Provides access to the objects associated with the event event)Implements jakarta. |
| public void | onStartAsync(AsyncEvent
Provides access to the objects associated with the event event)Implements jakarta. ServletRequest#startAsync() after the completion of the
AsyncContext to which this listener was added.
|
| public void | onTimeout(AsyncEvent
Provides access to the objects associated with the event event)Implements jakarta. |
| RequestAsyncListener | back to summary |
|---|---|
| private RequestAsyncListener() | |
| onComplete | back to summary |
|---|---|
| public void onComplete(AsyncEvent event) Implements jakarta. Doc from jakarta. This event is fired after the call to
| |
| onError | back to summary |
|---|---|
| public void onError(AsyncEvent event) Implements jakarta. Doc from jakarta. This event is fired if an error occurs during an asynchronous operation but before the container takes any action as a result of the error.
| |
| onStartAsync | back to summary |
|---|---|
| public void onStartAsync(AsyncEvent event) Implements jakarta. Doc from jakarta. This event is fired if new call is made to
| |
| onTimeout | back to summary |
|---|---|
| public void onTimeout(AsyncEvent event) Implements jakarta. Doc from jakarta. This event is fired if an asynchronous operation times out but before the container takes any action as a result of the timeout.
| |
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final ServletInputStream |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | checkOnDataAvailable()
Implements abstract org. onDataAvailable()
immediately or schedule a notification.
|
| protected void | discardData()
Implements abstract org. |
| protected DataBuffer | read()
Implements abstract org. |
| protected void | readingPaused()
Implements abstract org. |
| public void |
| inputStream | back to summary |
|---|---|
| private final ServletInputStream inputStream | |
| RequestBodyPublisher | back to summary |
|---|---|
| public RequestBodyPublisher(ServletInputStream inputStream) | |
| checkOnDataAvailable | back to summary |
|---|---|
| protected void checkOnDataAvailable() Implements abstract org. Doc from org. Check if data is available and either call
| |
| discardData | back to summary |
|---|---|
| protected void discardData() Implements abstract org. Doc from org. Invoked after an I/O read error from the underlying server or after a cancellation signal from the downstream consumer to allow subclasses to discard any current cached data they might have.
| |
| read | back to summary |
|---|---|
| protected DataBuffer read() throws IOException Implements abstract org. Doc from org. Read once from the input, if possible.
| |
| readingPaused | back to summary |
|---|---|
| protected void readingPaused() Implements abstract org. Doc from org. Invoked when reading is paused due to a lack of demand. Note This method is guaranteed not to compete with
| |
| registerReadListener | back to summary |
|---|---|
| public void registerReadListener() throws IOException | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | onAllDataRead()
Implements jakarta. |
| public void | onDataAvailable()
Implements jakarta. |
| public void | onError(Throwable
The exception that occurred throwable)Implements jakarta. |
| RequestBodyPublisherReadListener | back to summary |
|---|---|
| private RequestBodyPublisherReadListener() | |
| onAllDataRead | back to summary |
|---|---|
| public void onAllDataRead() throws IOException Implements jakarta. Doc from jakarta. Invoked when the request body has been fully read.
| |
| onDataAvailable | back to summary |
|---|---|
| public void onDataAvailable() throws IOException Implements jakarta. Doc from jakarta. Invoked when data is available to read. The container will invoke this method the first time for a request as
soon as there is data to read. Subsequent invocations will only occur if a call to
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable throwable) Implements jakarta. Doc from jakarta. Invoked if an error occurs while reading the request body. | |