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