Package io.undertow.servlet.handlers
Class ServletHandler
- java.lang.Object
-
- io.undertow.servlet.handlers.ServletHandler
-
- All Implemented Interfaces:
HttpHandler
public class ServletHandler extends Object implements HttpHandler
The handler that is responsible for invoking the servletTODO: do we want to move lifecycle considerations out of this handler?
- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description ServletHandler(ManagedServlet managedServlet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedServletgetManagedServlet()voidhandleRequest(HttpServerExchange exchange)Handle the request.
-
-
-
Constructor Detail
-
ServletHandler
public ServletHandler(ManagedServlet managedServlet)
-
-
Method Detail
-
handleRequest
public void handleRequest(HttpServerExchange exchange) throws IOException, javax.servlet.ServletException
Description copied from interface:HttpHandlerHandle the request.- Specified by:
handleRequestin interfaceHttpHandler- Parameters:
exchange- the HTTP request/response exchange- Throws:
IOExceptionjavax.servlet.ServletException
-
getManagedServlet
public ManagedServlet getManagedServlet()
-
-