Package io.undertow.servlet.handlers
Class ServletInitialHandler
java.lang.Object
io.undertow.servlet.handlers.ServletInitialHandler
- All Implemented Interfaces:
io.undertow.server.HttpHandler,ServletDispatcher
public class ServletInitialHandler
extends Object
implements io.undertow.server.HttpHandler, ServletDispatcher
This must be the initial handler in the blocking servlet chain. This sets up the request and response objects,
and attaches them the to exchange.
- Author:
- Stuart Douglas
-
Constructor Summary
ConstructorsConstructorDescriptionServletInitialHandler(ServletPathMatches paths, io.undertow.server.HttpHandler next, Deployment deployment, ServletContextImpl servletContext) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatchMockRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Dispatches a mock request to the servlet container.voiddispatchToPath(io.undertow.server.HttpServerExchange exchange, ServletPathMatch pathInfo, javax.servlet.DispatcherType dispatcherType) Dispatches a servlet request to the specified servlet path, changing the current pathvoiddispatchToServlet(io.undertow.server.HttpServerExchange exchange, ServletChain servletchain, javax.servlet.DispatcherType dispatcherType) Dispatches a servlet request to the specified servlet, without changing the current pathio.undertow.server.HttpHandlergetNext()voidhandleRequest(io.undertow.server.HttpServerExchange exchange)
-
Constructor Details
-
ServletInitialHandler
public ServletInitialHandler(ServletPathMatches paths, io.undertow.server.HttpHandler next, Deployment deployment, ServletContextImpl servletContext)
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Throws:
Exception
-
dispatchToPath
public void dispatchToPath(io.undertow.server.HttpServerExchange exchange, ServletPathMatch pathInfo, javax.servlet.DispatcherType dispatcherType) throws Exception Description copied from interface:ServletDispatcherDispatches a servlet request to the specified servlet path, changing the current path- Specified by:
dispatchToPathin interfaceServletDispatcher- Throws:
Exception- See Also:
-
dispatchToServlet
public void dispatchToServlet(io.undertow.server.HttpServerExchange exchange, ServletChain servletchain, javax.servlet.DispatcherType dispatcherType) throws Exception Description copied from interface:ServletDispatcherDispatches a servlet request to the specified servlet, without changing the current path- Specified by:
dispatchToServletin interfaceServletDispatcher- Throws:
Exception
-
dispatchMockRequest
public void dispatchMockRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException Description copied from interface:ServletDispatcherDispatches a mock request to the servlet container.- Specified by:
dispatchMockRequestin interfaceServletDispatcher- Parameters:
request- The requestresponse- The response- Throws:
javax.servlet.ServletException
-
getNext
public io.undertow.server.HttpHandler getNext()
-