Package io.undertow.servlet.api
Interface ServletDispatcher
- All Known Implementing Classes:
ServletInitialHandler
public interface ServletDispatcher
- Author:
- Stuart Douglas
-
Method Summary
Modifier and TypeMethodDescriptionvoiddispatchMockRequest(HttpServletRequest request, HttpServletResponse response) Dispatches a mock request to the servlet container.voiddispatchToPath(HttpServerExchange exchange, ServletPathMatch pathMatch, DispatcherType dispatcherType) Dispatches a servlet request to the specified servlet path, changing the current pathvoiddispatchToServlet(HttpServerExchange exchange, ServletChain servletChain, DispatcherType dispatcherType) Dispatches a servlet request to the specified servlet, without changing the current path
-
Method Details
-
dispatchToPath
void dispatchToPath(HttpServerExchange exchange, ServletPathMatch pathMatch, DispatcherType dispatcherType) throws Exception Dispatches a servlet request to the specified servlet path, changing the current path- Throws:
Exception- See Also:
-
dispatchToServlet
void dispatchToServlet(HttpServerExchange exchange, ServletChain servletChain, DispatcherType dispatcherType) throws Exception Dispatches a servlet request to the specified servlet, without changing the current path- Throws:
Exception
-
dispatchMockRequest
void dispatchMockRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException Dispatches a mock request to the servlet container.- Parameters:
request- The requestresponse- The response- Throws:
ServletException
-