Class TomcatHttpHandlerAdapter
- java.lang.Object
- org.springframework.http.server.reactive.ServletHttpHandlerAdapter
- org.springframework.http.server.reactive.TomcatHttpHandlerAdapter
- All Implemented Interfaces:
Servlet
public class TomcatHttpHandlerAdapter extends ServletHttpHandlerAdapter
ServletHttpHandlerAdapterextension that uses Tomcat APIs for reading from the request and writing to the response withByteBuffer.- Since:
- 5.0
- Author:
- Violeta Georgieva, Brian Clozel
- See Also:
AbstractReactiveWebInitializer
Constructor Summary
Constructors Constructor Description TomcatHttpHandlerAdapter(HttpHandler httpHandler)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.http.server.reactive.ServletServerHttpRequestcreateRequest(HttpServletRequest request, AsyncContext asyncContext)protected org.springframework.http.server.reactive.ServletServerHttpResponsecreateResponse(HttpServletResponse response, AsyncContext asyncContext, org.springframework.http.server.reactive.ServletServerHttpRequest request)Methods inherited from class org.springframework.http.server.reactive.ServletHttpHandlerAdapter
destroy, getBufferSize, getDataBufferFactory, getServletConfig, getServletInfo, getServletPath, init, service, setBufferSize, setDataBufferFactory
Constructor Detail
TomcatHttpHandlerAdapter
public TomcatHttpHandlerAdapter(HttpHandler httpHandler)
Method Detail
createRequest
protected org.springframework.http.server.reactive.ServletServerHttpRequest createRequest(HttpServletRequest request, AsyncContext asyncContext) throws IOException, URISyntaxException
- Overrides:
createRequestin classServletHttpHandlerAdapter- Throws:
IOExceptionURISyntaxException
createResponse
protected org.springframework.http.server.reactive.ServletServerHttpResponse createResponse(HttpServletResponse response, AsyncContext asyncContext, org.springframework.http.server.reactive.ServletServerHttpRequest request) throws IOException
- Overrides:
createResponsein classServletHttpHandlerAdapter- Throws:
IOException