ServletHttpHandlerAdapter extension that uses Tomcat APIs for reading
from the request and writing to the response with ByteBuffer.
org.springframework.web.server.adapter.AbstractReactiveWebInitializer
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected ServletServerHttpRequest | createRequest(HttpServletRequest request, AsyncContext asyncContext)
Overrides org.
|
| protected ServletServerHttpResponse | createResponse(HttpServletResponse response, AsyncContext asyncContext, ServletServerHttpRequest request)
Overrides org.
|
| TomcatHttpHandlerAdapter | back to summary |
|---|---|
| public TomcatHttpHandlerAdapter(HttpHandler httpHandler) | |
| createRequest | back to summary |
|---|---|
| protected ServletServerHttpRequest createRequest(HttpServletRequest request, AsyncContext asyncContext) throws IOException, URISyntaxException Overrides org.
| |
| createResponse | back to summary |
|---|---|
| protected ServletServerHttpResponse createResponse(HttpServletResponse response, AsyncContext asyncContext, ServletServerHttpRequest request) throws IOException Overrides org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private static final Field | |
| private final DataBufferFactory |
| Access | Constructor and Description |
|---|---|
| pack-priv | TomcatServerHttpRequest(HttpServletRequest request, AsyncContext context, String servletPath, DataBufferFactory factory, int bufferSize)
|
| Modifier and Type | Method and Description |
|---|---|
| private static MultiValueMap | |
| private static RequestFacade | |
| protected DataBuffer | readFromInputStream()
Overrides org. Read from the request body InputStream and return a DataBuffer. |
| bufferSize | back to summary |
|---|---|
| private final int bufferSize | |
| COYOTE_REQUEST_FIELD | back to summary |
|---|---|
| private static final Field COYOTE_REQUEST_FIELD | |
| factory | back to summary |
|---|---|
| private final DataBufferFactory factory | |
| TomcatServerHttpRequest | back to summary |
|---|---|
| pack-priv TomcatServerHttpRequest(HttpServletRequest request, AsyncContext context, String servletPath, DataBufferFactory factory, int bufferSize) throws IOException, URISyntaxException | |
| createTomcatHttpHeaders | back to summary |
|---|---|
| private static MultiValueMap | |
| getRequestFacade | back to summary |
|---|---|
| private static RequestFacade getRequestFacade(HttpServletRequest request) | |
| readFromInputStream | back to summary |
|---|---|
| protected DataBuffer readFromInputStream() throws IOException Overrides org. Doc from org. Read from the request body InputStream and return a DataBuffer.
Invoked only when
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final Field |
| Access | Constructor and Description |
|---|---|
| pack-priv | TomcatServerHttpResponse(HttpServletResponse response, AsyncContext context, DataBufferFactory factory, int bufferSize, ServletServerHttpRequest request)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | applyHeaders()
Overrides org. Invoked when the response is getting committed allowing subclasses to make apply header values to the underlying response. |
| private static HttpHeaders | |
| private static ResponseFacade | |
| protected int | writeToOutputStream(DataBuffer dataBuffer)
Overrides org. Write the DataBuffer to the response body OutputStream. |
| COYOTE_RESPONSE_FIELD | back to summary |
|---|---|
| private static final Field COYOTE_RESPONSE_FIELD | |
| TomcatServerHttpResponse | back to summary |
|---|---|
| pack-priv TomcatServerHttpResponse(HttpServletResponse response, AsyncContext context, DataBufferFactory factory, int bufferSize, ServletServerHttpRequest request) throws IOException | |
| applyHeaders | back to summary |
|---|---|
| protected void applyHeaders() Overrides org. Doc from org. Invoked when the response is getting committed allowing subclasses to make apply header values to the underlying response. Note that some subclasses use an
| |
| createTomcatHttpHeaders | back to summary |
|---|---|
| private static HttpHeaders createTomcatHttpHeaders(HttpServletResponse response) | |
| getResponseFacade | back to summary |
|---|---|
| private static ResponseFacade getResponseFacade(HttpServletResponse response) | |
| writeToOutputStream | back to summary |
|---|---|
| protected int writeToOutputStream(DataBuffer dataBuffer) throws IOException Overrides org. Doc from org. Write the DataBuffer to the response body OutputStream.
Invoked only when
| |