Class JettyHttpHandlerAdapter
- java.lang.Object
- org.springframework.http.server.reactive.ServletHttpHandlerAdapter
- org.springframework.http.server.reactive.JettyHttpHandlerAdapter
- All Implemented Interfaces:
Servlet
public class JettyHttpHandlerAdapter extends ServletHttpHandlerAdapter
ServletHttpHandlerAdapter
extension that uses Jetty APIs for writing to the response withByteBuffer
.- Since:
- 5.0
- Author:
- Violeta Georgieva, Brian Clozel
- See Also:
AbstractReactiveWebInitializer
Constructor Summary
Constructors Constructor Description JettyHttpHandlerAdapter(HttpHandler httpHandler)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.http.server.reactive.ServletServerHttpRequest
createRequest(HttpServletRequest request, AsyncContext context)
protected org.springframework.http.server.reactive.ServletServerHttpResponse
createResponse(HttpServletResponse response, AsyncContext context, 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
JettyHttpHandlerAdapter
public JettyHttpHandlerAdapter(HttpHandler httpHandler)
Method Detail
createRequest
protected org.springframework.http.server.reactive.ServletServerHttpRequest createRequest(HttpServletRequest request, AsyncContext context) throws IOException, URISyntaxException
- Overrides:
createRequest
in classServletHttpHandlerAdapter
- Throws:
IOException
URISyntaxException
createResponse
protected org.springframework.http.server.reactive.ServletServerHttpResponse createResponse(HttpServletResponse response, AsyncContext context, org.springframework.http.server.reactive.ServletServerHttpRequest request) throws IOException
- Overrides:
createResponse
in classServletHttpHandlerAdapter
- Throws:
IOException