Package io.undertow.servlet.api
Interface ServletDispatcher
-
- All Known Implementing Classes:
ServletInitialHandler
public interface ServletDispatcher- Author:
- Stuart Douglas
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddispatchMockRequest(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 pathMatch, 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 path
-
-
-
Method Detail
-
dispatchToPath
void dispatchToPath(io.undertow.server.HttpServerExchange exchange, ServletPathMatch pathMatch, javax.servlet.DispatcherType dispatcherType) throws ExceptionDispatches a servlet request to the specified servlet path, changing the current path- Throws:
Exception- See Also:
ServletRequestContext
-
dispatchToServlet
void dispatchToServlet(io.undertow.server.HttpServerExchange exchange, ServletChain servletChain, javax.servlet.DispatcherType dispatcherType) throws ExceptionDispatches 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.ServletExceptionDispatches a mock request to the servlet container.- Parameters:
request- The requestresponse- The response- Throws:
javax.servlet.ServletException
-
-