@WebServlet(asyncSupported=true) public class ServletHttpHandlerAdapter extends HttpHandlerAdapterSupport implements Servlet
HttpHandler to an HttpServlet using Servlet Async
support and Servlet 3.1 non-blocking I/O.logger| Constructor and Description |
|---|
ServletHttpHandlerAdapter(HttpHandler httpHandler) |
ServletHttpHandlerAdapter(Map<String,HttpHandler> handlerMap) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
int |
getBufferSize()
Return the configured input buffer size.
|
org.springframework.core.io.buffer.DataBufferFactory |
getDataBufferFactory() |
ServletConfig |
getServletConfig() |
String |
getServletInfo() |
void |
init(ServletConfig config) |
void |
service(ServletRequest request,
ServletResponse response) |
void |
setBufferSize(int bufferSize)
Set the size of the input buffer used for reading in bytes.
|
void |
setDataBufferFactory(org.springframework.core.io.buffer.DataBufferFactory dataBufferFactory) |
getHttpHandlerpublic ServletHttpHandlerAdapter(HttpHandler httpHandler)
public ServletHttpHandlerAdapter(Map<String,HttpHandler> handlerMap)
public void setDataBufferFactory(org.springframework.core.io.buffer.DataBufferFactory dataBufferFactory)
public org.springframework.core.io.buffer.DataBufferFactory getDataBufferFactory()
public void setBufferSize(int bufferSize)
By default this is set to 8192.
public int getBufferSize()
public void service(ServletRequest request, ServletResponse response) throws IOException
service in interface ServletIOExceptionpublic void init(ServletConfig config)
public ServletConfig getServletConfig()
getServletConfig in interface Servletpublic String getServletInfo()
getServletInfo in interface Servlet