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 void
dispatchMockRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
Dispatches a mock request to the servlet container.void
dispatchToPath(io.undertow.server.HttpServerExchange exchange, ServletPathMatch pathMatch, jakarta.servlet.DispatcherType dispatcherType)
Dispatches a servlet request to the specified servlet path, changing the current pathvoid
dispatchToServlet(io.undertow.server.HttpServerExchange exchange, ServletChain servletChain, jakarta.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, jakarta.servlet.DispatcherType dispatcherType) throws java.lang.Exception
Dispatches a servlet request to the specified servlet path, changing the current path- Throws:
java.lang.Exception
- See Also:
ServletRequestContext
-
dispatchToServlet
void dispatchToServlet(io.undertow.server.HttpServerExchange exchange, ServletChain servletChain, jakarta.servlet.DispatcherType dispatcherType) throws java.lang.Exception
Dispatches a servlet request to the specified servlet, without changing the current path- Throws:
java.lang.Exception
-
dispatchMockRequest
void dispatchMockRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException
Dispatches a mock request to the servlet container.- Parameters:
request
- The requestresponse
- The response- Throws:
jakarta.servlet.ServletException
-
-