ServerHttpRequest to the Undertow HttpServerExchange.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final UndertowServerHttpRequest. | |
| private final HttpServerExchange | |
| private static final AtomicLong |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Flux | getBody()
Implements org. Return the body of the message as a |
| public InetSocketAddress | getLocalAddress()
Overrides default org. Return the local address the request was accepted on, if available. |
| public <T> T | getNativeRequest()
Implements abstract org. Return the underlying server response. |
| public InetSocketAddress | getRemoteAddress()
Overrides default org. Return the remote address where this request is connected to, if available. |
| protected MultiValueMap | initCookies()
Implements abstract org. Obtain the cookies from the underlying "native" request and adapt those to
an |
| protected String | initId()
Overrides org. Obtain the request id to use, or |
| protected SslInfo | initSslInfo()
Implements abstract org. Obtain SSL session information from the underlying "native" request. |
| private static URI |
| body | back to summary |
|---|---|
| private final UndertowServerHttpRequest. | |
| exchange | back to summary |
|---|---|
| private final HttpServerExchange exchange | |
| logPrefixIndex | back to summary |
|---|---|
| private static final AtomicLong logPrefixIndex | |
| UndertowServerHttpRequest | back to summary |
|---|---|
| public UndertowServerHttpRequest(HttpServerExchange exchange, DataBufferFactory bufferFactory) throws URISyntaxException | |
| getBody | back to summary |
|---|---|
| public Flux Implements org. Doc from org. Return the body of the message as a
| |
| 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. | |
| 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
| |
| initId | back to summary |
|---|---|
| protected String initId() Overrides org. Doc from org. Obtain the request id to use, or
| |
| 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(HttpServerExchange exchange) throws URISyntaxException | |
| Modifier and Type | Field and Description |
|---|---|
| private final DataBufferFactory | |
| private final ByteBufferPool | |
| private final StreamSourceChannel |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | checkOnDataAvailable()
Implements abstract org. Check if data is available and either call |
| protected void | discardData()
Implements abstract 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. |
| protected DataBuffer | read()
Implements abstract org. Read once from the input, if possible. |
| protected void | readingPaused()
Implements abstract org. Invoked when reading is paused due to a lack of demand. |
| private void |
| bufferFactory | back to summary |
|---|---|
| private final DataBufferFactory bufferFactory | |
| byteBufferPool | back to summary |
|---|---|
| private final ByteBufferPool byteBufferPool | |
| channel | back to summary |
|---|---|
| private final StreamSourceChannel channel | |
| RequestBodyPublisher | back to summary |
|---|---|
| public RequestBodyPublisher(HttpServerExchange exchange, DataBufferFactory bufferFactory) | |
| 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
| |
| registerListeners | back to summary |
|---|---|
| private void registerListeners(HttpServerExchange exchange) | |