public class TomcatHttpHandlerAdapter extends ServletHttpHandlerAdapter
ServletHttpHandlerAdapter
extension that uses Jetty APIs for reading
from the request and writing to the response with ByteBuffer
.Modifier and Type | Class and Description |
---|---|
private class |
TomcatHttpHandlerAdapter.TomcatServerHttpRequest |
private static class |
TomcatHttpHandlerAdapter.TomcatServerHttpResponse |
logger
Constructor and Description |
---|
TomcatHttpHandlerAdapter(HttpHandler httpHandler) |
TomcatHttpHandlerAdapter(java.util.Map<java.lang.String,HttpHandler> handlerMap) |
Modifier and Type | Method and Description |
---|---|
protected ServerHttpRequest |
createRequest(HttpServletRequest request,
AsyncContext cxt) |
protected ServerHttpResponse |
createResponse(HttpServletResponse response,
AsyncContext cxt) |
destroy, getBufferSize, getDataBufferFactory, getServletConfig, getServletInfo, init, service, setBufferSize, setDataBufferFactory
getHttpHandler
public TomcatHttpHandlerAdapter(HttpHandler httpHandler)
public TomcatHttpHandlerAdapter(java.util.Map<java.lang.String,HttpHandler> handlerMap)
protected ServerHttpRequest createRequest(HttpServletRequest request, AsyncContext cxt) throws java.io.IOException
createRequest
in class ServletHttpHandlerAdapter
java.io.IOException
protected ServerHttpResponse createResponse(HttpServletResponse response, AsyncContext cxt) throws java.io.IOException
createResponse
in class ServletHttpHandlerAdapter
java.io.IOException