Interface ServletDispatcher

  • All Known Implementing Classes:
    ServletInitialHandler

    public interface ServletDispatcher
    Author:
    Stuart Douglas
    • Method Detail

      • dispatchToServlet

        void dispatchToServlet​(HttpServerExchange exchange,
                               ServletChain servletChain,
                               jakarta.servlet.DispatcherType dispatcherType)
                        throws Exception
        Dispatches a servlet request to the specified servlet, without changing the current path
        Throws:
        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 request
        response - The response
        Throws:
        jakarta.servlet.ServletException